Skip to navigation

Struct Plugin Observation Context

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -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>,
}

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:

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

clone

fn clone(&self) -> PluginObservationContext

clone_from

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

impl Debug for PluginObservationContext

impl Debug for PluginObservationContext

fmt

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

impl Default for PluginObservationContext

impl Default for PluginObservationContext

default

fn default() -> PluginObservationContext

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

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

deserialize

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

impl Hash for PluginObservationContext

impl Hash for PluginObservationContext

hash

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

hash_slice

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

impl PartialEq for PluginObservationContext

impl PartialEq for PluginObservationContext

eq

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

ne

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

impl Serialize for PluginObservationContext

impl Serialize for PluginObservationContext

serialize

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

impl Eq for PluginObservationContext

impl Eq for PluginObservationContext

impl StructuralPartialEq for PluginObservationContext

impl StructuralPartialEq for PluginObservationContext