Struct Component Spec

View as Markdown

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: NeMoGuardrailsConfig,
}

Top-level NeMo Guardrails component wrapper.

Fields

enabled: bool

Whether the component should be activated.

config: NeMoGuardrailsConfig

Component-local NeMo Guardrails config.

Implementations

impl ComponentSpec

impl ComponentSpec

new

pub fn new(config: NeMoGuardrailsConfig) -> Self

Creates an enabled NeMo Guardrails component spec.

Trait Implementations

impl Clone for ComponentSpec

impl Clone for ComponentSpec

clone

fn clone(&self) -> ComponentSpec

clone_from

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

impl Debug for ComponentSpec

impl Debug for ComponentSpec

fmt

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

impl From<ComponentSpec> for PluginComponentSpec

impl From<ComponentSpec> for PluginComponentSpec

from

fn from(value: ComponentSpec) -> Self