Struct Plugin Component Spec
Generated from cargo doc --no-deps -p nemo-relay-builtins -p nemo-relay-diagnostics -p nemo-relay-logging -p nemo-relay-plugin-host -p nemo-relay-codecs -p nemo-relay -p nemo-relay-runtime -p nemo-relay-model-pricing -p nemo-relay-resource-metrics -p nemo-relay-observability -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
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>) -> PluginComponentSpec
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<(), Error>
impl<'de> Deserialize<'de> for PluginComponentSpec
impl<'de> Deserialize<'de> for PluginComponentSpec
deserialize
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PluginComponentSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl From<ComponentSpec> for PluginComponentSpec
impl From<ComponentSpec> for PluginComponentSpec
from
fn from(value: ComponentSpec) -> PluginComponentSpec
impl JsonSchema for PluginComponentSpec
impl JsonSchema for PluginComponentSpec
schema_name
fn schema_name() -> String
schema_id
fn schema_id() -> Cow<'static, str>
json_schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
is_referenceable
fn is_referenceable() -> bool
impl Serialize for PluginComponentSpec
impl Serialize for PluginComponentSpec
serialize
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,