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: SensorSettings,
}Expand description
Raw top-level configuration document stored in NATS KV.
The web dashboard writes this nested shape. The streamer normalizes it into
SampleConfig with sample_config_from_nested before applying it to LabJack
and NATS runtime state. Fields the streamer does not use are still parsed, so a
document missing them is rejected.
Fields§
§labjack_name: StringLogical LabJack name. Used as the source token in structured subjects when
source_id is not set.
asset_number: u32Asset number used in legacy subjects (<root>.<asset>.data.chNN).
max_channels: u32Maximum channel count shown by the dashboard. Not used by the streamer.
site_id: Option<String>Site identifier for the structured subject namespace.
box_id: Option<String>Box identifier for the structured subject namespace.
source_type: Option<String>Source type. Carried through to SampleConfig but not used in subjects.
source_id: Option<String>Source identifier for the structured subject namespace.
nats_subject: StringSubject root, for example avenars.
nats_stream: StringName of the JetStream stream that stores the live samples.
rotate_secs: u64File rotation period in seconds. Used by the archiver, not by the streamer.
sensor_settings: SensorSettingsLabJack acquisition settings.
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