Struct Policy Envelope

View as Markdown

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

pub struct PolicyEnvelope<T> {
    pub agent_identity: AgentIdentity,
    pub policy_version: String,
    pub created_at: DateTime<Utc>,
    pub policy: T,
}

Versioned wrapper for an ACG policy document.

This envelope binds a concrete policy payload to the agent identity it was derived for and records the schema version and creation timestamp.

Fields

agent_identity: AgentIdentity

Agent identity the enclosed policy applies to.

policy_version: String

Version string for the policy schema or generation pipeline.

created_at: DateTime<Utc>

Timestamp when the policy document was created.

policy: T

Concrete policy payload.

Trait Implementations

impl<T: Clone> Clone for PolicyEnvelope<T>

impl<T: Clone> Clone for PolicyEnvelope<T>

clone

fn clone(&self) -> PolicyEnvelope<T>

clone_from

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

impl<T: Debug> Debug for PolicyEnvelope<T>

impl<T: Debug> Debug for PolicyEnvelope<T>

fmt

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

impl<'de, T> Deserialize<'de> for PolicyEnvelope<T>where T: Deserialize<'de>,

impl<'de, T> Deserialize<'de> for PolicyEnvelope<T>where
    T: Deserialize<'de>,

deserialize

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

impl<T: PartialEq> PartialEq for PolicyEnvelope<T>

impl<T: PartialEq> PartialEq for PolicyEnvelope<T>

eq

fn eq(&self, other: &PolicyEnvelope<T>) -> bool

ne

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

impl<T> Serialize for PolicyEnvelope<T>where T: Serialize,

impl<T> Serialize for PolicyEnvelope<T>where
    T: Serialize,

serialize

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

impl<T> StructuralPartialEq for PolicyEnvelope<T>

impl<T> StructuralPartialEq for PolicyEnvelope<T>