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: GovernedProvenanceEvidenceClassEvidence 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: GovernedCallChainContextThe delegated call-chain details carried with the governed request or receipt.
Implementations§
Source§impl GovernedCallChainProvenance
impl GovernedCallChainProvenance
pub fn new( context: GovernedCallChainContext, evidence_class: GovernedProvenanceEvidenceClass, ) -> GovernedCallChainProvenance
pub fn with_evidence_sources( self, evidence_sources: impl IntoIterator<Item = GovernedCallChainEvidenceSource>, ) -> GovernedCallChainProvenance
pub fn with_upstream_proof( self, upstream_proof: GovernedUpstreamCallChainProof, ) -> GovernedCallChainProvenance
pub fn with_asserted_context( self, asserted_context: GovernedCallChainContext, ) -> GovernedCallChainProvenance
pub fn with_continuation_token_id( self, continuation_token_id: impl Into<String>, ) -> GovernedCallChainProvenance
pub fn with_session_anchor_id( self, session_anchor_id: impl Into<String>, ) -> GovernedCallChainProvenance
pub fn with_receipt_lineage_statement_id( self, receipt_lineage_statement_id: impl Into<String>, ) -> GovernedCallChainProvenance
pub fn asserted( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance
pub fn observed( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance
pub fn verified( context: GovernedCallChainContext, ) -> GovernedCallChainProvenance
pub fn is_asserted(&self) -> bool
pub fn is_observed(&self) -> bool
pub fn is_verified(&self) -> bool
pub fn as_context(&self) -> &GovernedCallChainContext
pub fn asserted_context(&self) -> Option<&GovernedCallChainContext>
pub fn verified_context(&self) -> Option<&GovernedCallChainContext>
pub fn into_inner(self) -> GovernedCallChainContext
Trait Implementations§
Source§impl Clone for GovernedCallChainProvenance
impl Clone for GovernedCallChainProvenance
Source§fn clone(&self) -> GovernedCallChainProvenance
fn clone(&self) -> GovernedCallChainProvenance
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GovernedCallChainProvenance
impl Debug for GovernedCallChainProvenance
Source§impl Deref for GovernedCallChainProvenance
impl Deref for GovernedCallChainProvenance
Source§type Target = GovernedCallChainContext
type Target = GovernedCallChainContext
The resulting type after dereferencing.
Source§impl<'de> Deserialize<'de> for GovernedCallChainProvenance
impl<'de> Deserialize<'de> for GovernedCallChainProvenance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernedCallChainProvenance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
impl From<GovernedCallChainContext> for GovernedCallChainProvenance
Source§fn from(context: GovernedCallChainContext) -> GovernedCallChainProvenance
fn from(context: GovernedCallChainContext) -> GovernedCallChainProvenance
Converts to this type from the input type.
Source§impl Serialize for GovernedCallChainProvenance
impl Serialize for GovernedCallChainProvenance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl Eq for GovernedCallChainProvenance
impl StructuralPartialEq for GovernedCallChainProvenance
Auto Trait Implementations§
impl Freeze for GovernedCallChainProvenance
impl RefUnwindSafe for GovernedCallChainProvenance
impl Send for GovernedCallChainProvenance
impl Sync for GovernedCallChainProvenance
impl Unpin for GovernedCallChainProvenance
impl UnsafeUnpin for GovernedCallChainProvenance
impl UnwindSafe for GovernedCallChainProvenance
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more