Skip to main content

GovernedCallChainProvenance

Struct GovernedCallChainProvenance 

Source
pub struct GovernedCallChainProvenance {
    pub evidence_class: GovernedProvenanceEvidenceClass,
    pub evidence_sources: Vec<GovernedCallChainEvidenceSource>,
    pub upstream_proof: Option<GovernedUpstreamCallChainProof>,
    pub asserted_context: Option<GovernedCallChainContext>,
    pub continuation_token_id: Option<String>,
    pub session_anchor_id: Option<String>,
    pub receipt_lineage_statement_id: Option<String>,
    pub context: GovernedCallChainContext,
}
Expand description

Typed provenance envelope for delegated governed call-chain metadata.

Fields§

§evidence_class: GovernedProvenanceEvidenceClass

Evidence class describing how strongly Chio should treat this provenance.

§evidence_sources: Vec<GovernedCallChainEvidenceSource>

Specific authoritative local evidence Chio used when it upgraded the caller assertion.

§upstream_proof: Option<GovernedUpstreamCallChainProof>

Optional signed upstream proof Chio validated before upgrading to verified provenance.

§asserted_context: Option<GovernedCallChainContext>

Optional preserved caller assertion when Chio upgraded or rewrote the effective context.

§continuation_token_id: Option<String>

Optional continuation token identifier that backed a verified upgrade.

§session_anchor_id: Option<String>

Optional session-anchor identifier that scoped the verified lineage edge.

§receipt_lineage_statement_id: Option<String>

Optional receipt-lineage statement identifier that authenticated the receipt edge.

§context: GovernedCallChainContext

The delegated call-chain details carried with the governed request or receipt.

Implementations§

Source§

impl GovernedCallChainProvenance

Source

pub fn new( context: GovernedCallChainContext, evidence_class: GovernedProvenanceEvidenceClass, ) -> GovernedCallChainProvenance

Source

pub fn with_evidence_sources( self, evidence_sources: impl IntoIterator<Item = GovernedCallChainEvidenceSource>, ) -> GovernedCallChainProvenance

Source

pub fn with_upstream_proof( self, upstream_proof: GovernedUpstreamCallChainProof, ) -> GovernedCallChainProvenance

Source

pub fn with_asserted_context( self, asserted_context: GovernedCallChainContext, ) -> GovernedCallChainProvenance

Source

pub fn with_continuation_token_id( self, continuation_token_id: impl Into<String>, ) -> GovernedCallChainProvenance

Source

pub fn with_session_anchor_id( self, session_anchor_id: impl Into<String>, ) -> GovernedCallChainProvenance

Source

pub fn with_receipt_lineage_statement_id( self, receipt_lineage_statement_id: impl Into<String>, ) -> GovernedCallChainProvenance

Source

pub fn asserted( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance

Source

pub fn observed( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance

Source

pub fn verified( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance

Source

pub fn is_asserted(&self) -> bool

Source

pub fn is_observed(&self) -> bool

Source

pub fn is_verified(&self) -> bool

Source

pub fn as_context(&self) -> &GovernedCallChainContext

Source

pub fn asserted_context(&self) -> Option<&GovernedCallChainContext>

Source

pub fn verified_context(&self) -> Option<&GovernedCallChainContext>

Source

pub fn into_inner(self) -> GovernedCallChainContext

Trait Implementations§

Source§

impl Clone for GovernedCallChainProvenance

Source§

fn clone(&self) -> GovernedCallChainProvenance

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for GovernedCallChainProvenance

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Deref for GovernedCallChainProvenance

Source§

type Target = GovernedCallChainContext

The resulting type after dereferencing.
Source§

fn deref(&self) -> &<GovernedCallChainProvenance as Deref>::Target

Dereferences the value.
Source§

impl<'de> Deserialize<'de> for GovernedCallChainProvenance

Source§

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

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<GovernedCallChainContext> for GovernedCallChainProvenance

Source§

fn from(context: GovernedCallChainContext) -> GovernedCallChainProvenance

Converts to this type from the input type.
Source§

impl PartialEq for GovernedCallChainProvenance

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for GovernedCallChainProvenance

Source§

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

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for GovernedCallChainProvenance

Source§

impl StructuralPartialEq for GovernedCallChainProvenance

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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