pub(crate) struct NestedConfig {
pub(crate) labjack_name: String,
pub(crate) asset_number: u32,
pub(crate) max_channels: u32,
pub(crate) site_id: Option<String>,
pub(crate) box_id: Option<String>,
pub(crate) source_type: Option<String>,
pub(crate) source_id: Option<String>,
pub(crate) nats_subject: String,
pub(crate) nats_stream: String,
pub(crate) rotate_secs: u64,
pub(crate) sensor_settings: SensorConfig,
}Expand description
Raw top-level dashboard configuration loaded from NATS KV.
This is the JSON shape the dashboard writes. sample_config_from_nested turns it
into the archiver’s SampleConfig.
Fields§
§labjack_name: StringLabJack device name; used as the source ID when source_id is absent.
asset_number: u32Asset number; names the asset<NNN> output directory.
max_channels: u32Maximum channel count from the dashboard. Parsed but not used by the archiver.
site_id: Option<String>Site identifier used in the structured subject namespace.
box_id: Option<String>Box identifier used in the subject and the durable consumer name.
source_type: Option<String>Source type used in the durable consumer name (labjack when absent).
source_id: Option<String>Source identifier used in the subject and the durable consumer name.
nats_subject: StringSubject root, for example avenabox or avenars.
nats_stream: StringName of the JetStream stream holding the channel subjects.
rotate_secs: u64Length of one file rotation window, in seconds.
sensor_settings: SensorConfigNested sensor settings section.
Trait Implementations§
Source§impl Clone for NestedConfig
impl Clone for NestedConfig
Source§fn clone(&self) -> NestedConfig
fn clone(&self) -> NestedConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more