Struct Plugin Component Spec

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct PluginComponentSpec {
    pub kind: String,
    pub enabled: bool,
    pub config: Map<String, Value>,
}

One configured plugin component.

Fields

kind: String

Registered plugin kind string.

enabled: bool

Whether the component should be activated.

Disabled components are still validated but skipped during runtime registration.

config: Map<String, Value>

Component-local JSON config object passed to the plugin.

Implementations

impl PluginComponentSpec

impl PluginComponentSpec

new

pub fn new(kind: impl Into<String>) -> Self

Creates a new enabled component spec with empty config.

Trait Implementations

impl Clone for PluginComponentSpec

impl Clone for PluginComponentSpec

clone

fn clone(&self) -> PluginComponentSpec

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for PluginComponentSpec

impl Debug for PluginComponentSpec

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for PluginComponentSpec

impl<'de> Deserialize<'de> for PluginComponentSpec

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl From<ComponentSpec> for PluginComponentSpec

impl From<ComponentSpec> for PluginComponentSpec

from

fn from(value: ComponentSpec) -> Self

impl From<ComponentSpec> for PluginComponentSpec

impl From<ComponentSpec> for PluginComponentSpec

from

fn from(value: ComponentSpec) -> Self

impl Serialize for PluginComponentSpec

impl Serialize for PluginComponentSpec

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,