Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct ComponentSpec {
pub enabled: bool,
pub config: ObservabilityConfig,
}
Top-level observability component wrapper.
Use this wrapper when constructing a PluginComponentSpec from Rust instead of hand-writing the generic plugin component shape. The component kind is always OBSERVABILITY_PLUGIN_KIND.
enabled: boolWhether the observability component should be activated.
config: ObservabilityConfigObservability config for this top-level component.
impl ComponentSpecimpl ComponentSpec
newpub fn new(config: ObservabilityConfig) -> Self
Creates an enabled observability component spec.
The returned component can be converted into the generic plugin config entry with PluginComponentSpec::from(...).
impl Clone for ComponentSpecimpl Clone for ComponentSpec
clonefn clone(&self) -> ComponentSpec
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for ComponentSpecimpl Debug for ComponentSpec
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl From<ComponentSpec> for PluginComponentSpecimpl From<ComponentSpec> for PluginComponentSpec
fromfn from(value: ComponentSpec) -> Self