OptionsCodec.options.from.fields: def of mylsm-lsm-store@0.6.0.1 Import: import mylsm-lsm-store@0.6.0.1/src/coordinator/OptionsCodec.bend as OptionsCodec Lines 101-120 of mylsm-lsm-store@0.6.0.1/src/coordinator/OptionsCodec.bend: https://jend.leeeet.dev/read.txt?path=mylsm-lsm-store@0.6.0.1/src/coordinator/OptionsCodec.bend&start_line=101&end_line=120 import Base import mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend as ResourceOptions def options.from.fields( fields: List<&2, U32> ) -> Maybe<&2, ResourceOptions.Options>: match fields: case Con{restore_bytes, Con{index_buffer_bytes, Con{index_page_bytes, Con{retired_files, Con{retained_root_bytes, Con{cursors_per_snapshot, Con{cursors, Con{snapshots, Con{queue_timeout_ms, Con{queue_bytes, Con{requests, Con{response_timeout_ms, Con{frame_timeout_ms, Con{response_bytes, Con{receive_bytes, Con{frame_bytes, Con{connections, Nil{}}}}}}}}}}}}}}}}}}: Some{ResourceOptions.Options{ ResourceOptions.TransportLimits{connections, frame_bytes, receive_bytes, response_bytes, frame_timeout_ms, response_timeout_ms}, ResourceOptions.QueueLimits{requests, queue_bytes, queue_timeout_ms}, ResourceOptions.ReaderLimits{snapshots, cursors, cursors_per_snapshot, retained_root_bytes, retired_files, index_page_bytes, index_buffer_bytes, restore_bytes}}} case _: None{} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend&name=Options https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend&name=QueueLimits https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend&name=ReaderLimits https://jend.leeeet.dev/definition.txt?path=mylsm-lsm-store@0.6.0.1/src/ResourceOptions.bend&name=TransportLimits