Skip to navigation

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 PluginObservationContext {
pub execution: Option<PluginExecutionName>,
pub phase: Option<PluginPhaseName>,
}

Referenced types: Option, PluginExecutionName, PluginPhaseName

Shared plugin-operation facts for producers, projections, and decoded evidence.

Known producer values borrow canonical static names; decoded values own their strings, including future names. Core validates and encodes recording input into private fixed-size storage. Missing values remain distinct from names unrecognized by a reader, and context never establishes counter dimensions. Execution and phase have distinct wrappers, so mixing their typed values is rejected before recording:

This example intentionally does not compile.
use nemo_relay_types::diagnostics::{PluginObservationContext, PluginPhase};
let context = PluginObservationContext {
execution: Some(PluginPhase::Activation.into()),
phase: None,
};

Phase-one activation recording supplies only phase = "activation" and leaves execution unset. Other producer integrations remain deferred.

Fields

execution: Option<PluginExecutionName>

Observed execution name, when known; never inferred from a code.

phase: Option<PluginPhaseName>

Observed lifecycle phase or policy-gate context, when known.

Trait Implementations

impl Clone for PluginObservationContext

impl Clone for PluginObservationContext

Referenced types: Clone, PluginObservationContext

clone

fn clone(&self) -> PluginObservationContext

Referenced types: clone, PluginObservationContext

clone_from

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

Referenced types: clone_from

impl Debug for PluginObservationContext

impl Debug for PluginObservationContext

Referenced types: Debug, PluginObservationContext

fmt

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

Referenced types: fmt, Formatter, Result, (), Error

impl Default for PluginObservationContext

impl Default for PluginObservationContext

Referenced types: Default, PluginObservationContext

default

fn default() -> PluginObservationContext

Referenced types: default, PluginObservationContext

impl<'de> Deserialize<'de> for PluginObservationContext

impl<'de> Deserialize<'de> for PluginObservationContext

Referenced types: Deserialize, PluginObservationContext

deserialize

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

Referenced types: deserialize, Result, PluginObservationContext, Deserializer, Error

impl From<StoredPluginContext> for PluginObservationContext

impl From<StoredPluginContext> for PluginObservationContext

Referenced types: From, PluginObservationContext

from

fn from(value: StoredPluginContext) -> PluginObservationContext

Referenced types: from, PluginObservationContext

impl Hash for PluginObservationContext

impl Hash for PluginObservationContext

Referenced types: Hash, PluginObservationContext

hash

fn hash<__H>(&self, state: &mut __H)where
__H: Hasher,

Referenced types: hash, &mut __H, Hasher

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,

Referenced types: hash_slice, &mut H, Hasher, Sized

impl JsonSchema for PluginObservationContext

impl JsonSchema for PluginObservationContext

Referenced types: PluginObservationContext

schema_name

fn schema_name() -> String

Referenced types: String

schema_id

fn schema_id() -> Cow<'static, str>

Referenced types: Cow, str

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

is_referenceable

fn is_referenceable() -> bool

Referenced types: bool

impl PartialEq for PluginObservationContext

impl PartialEq for PluginObservationContext

Referenced types: PartialEq, PluginObservationContext

eq

fn eq(&self, other: &PluginObservationContext) -> bool

Referenced types: eq, PluginObservationContext, bool

ne

fn ne(&self, other: &Rhs) -> bool

Referenced types: ne, &Rhs, bool

impl Serialize for PluginObservationContext

impl Serialize for PluginObservationContext

Referenced types: Serialize, PluginObservationContext

serialize

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

Referenced types: serialize, Result, Serializer, Ok, Error

impl WireValue<Box<DiagnosticPluginContext>> for PluginObservationContext

impl WireValue<Box<DiagnosticPluginContext>> for PluginObservationContext

Referenced types: WireValue, Box, DiagnosticPluginContext, PluginObservationContext

to_wire

fn to_wire(self) -> Result<Box<DiagnosticPluginContext>, ConversionError>

Referenced types: to_wire, Result, Box, DiagnosticPluginContext, ConversionError

from_wire

fn from_wire(
value: Box<DiagnosticPluginContext>,
) -> Result<PluginObservationContext, ConversionError>

Referenced types: from_wire, Box, DiagnosticPluginContext, Result, PluginObservationContext, ConversionError

impl WireValue<DiagnosticPluginContext> for PluginObservationContext

impl WireValue<DiagnosticPluginContext> for PluginObservationContext

Referenced types: WireValue, DiagnosticPluginContext, PluginObservationContext

to_wire

fn to_wire(self) -> Result<DiagnosticPluginContext, ConversionError>

Referenced types: to_wire, Result, DiagnosticPluginContext, ConversionError

from_wire

fn from_wire(
value: DiagnosticPluginContext,
) -> Result<PluginObservationContext, ConversionError>

Referenced types: from_wire, DiagnosticPluginContext, Result, PluginObservationContext, ConversionError

impl Eq for PluginObservationContext

impl Eq for PluginObservationContext

Referenced types: Eq, PluginObservationContext

impl StructuralPartialEq for PluginObservationContext

impl StructuralPartialEq for PluginObservationContext

Referenced types: StructuralPartialEq, PluginObservationContext