Skip to main content

uses_structured_namespace

Function uses_structured_namespace 

Source
fn uses_structured_namespace(
    nats_subject: &str,
    site_id: Option<&str>,
    box_id: Option<&str>,
    source_id: Option<&str>,
) -> bool
Expand description

Decides whether a config should use the structured subject namespace.

§Arguments

  • nats_subject - Configured subject root, for example avenabox or avenars.
  • site_id - Configured site ID, if any.
  • box_id - Configured box ID, if any.
  • source_id - Configured source ID, if any.

§Returns

true if the trimmed root is exactly avenars or any of the three IDs is set and not empty. A LabJack name alone does not switch to the structured layout.