pub struct CallChainContinuationToken {Show 21 fields
pub schema: String,
pub token_id: String,
pub signer: PublicKey,
pub subject: PublicKey,
pub chain_id: String,
pub parent_request_id: String,
pub parent_receipt_id: Option<String>,
pub parent_receipt_hash: Option<String>,
pub parent_session_anchor: Option<SessionAnchorReference>,
pub current_subject: String,
pub delegator_subject: String,
pub origin_subject: String,
pub parent_capability_id: Option<String>,
pub delegation_link_hash: Option<String>,
pub governed_intent_hash: Option<String>,
pub audience: Option<CallChainContinuationAudience>,
pub nonce: Option<String>,
pub issued_at: u64,
pub expires_at: u64,
pub legacy_upstream_proof: Option<GovernedUpstreamCallChainProof>,
pub signature: Signature,
}Expand description
Signed continuation token used to move governed provenance across kernels.
Fields§
§schema: String§token_id: String§signer: PublicKey§subject: PublicKey§chain_id: String§parent_request_id: String§parent_receipt_id: Option<String>§parent_receipt_hash: Option<String>§parent_session_anchor: Option<SessionAnchorReference>§current_subject: String§delegator_subject: String§origin_subject: String§parent_capability_id: Option<String>§delegation_link_hash: Option<String>§governed_intent_hash: Option<String>§audience: Option<CallChainContinuationAudience>§nonce: Option<String>§issued_at: u64§expires_at: u64§legacy_upstream_proof: Option<GovernedUpstreamCallChainProof>§signature: SignatureImplementations§
Source§impl CallChainContinuationToken
impl CallChainContinuationToken
pub fn body(&self) -> CallChainContinuationTokenBody
pub fn sign( body: CallChainContinuationTokenBody, keypair: &Keypair, ) -> Result<CallChainContinuationToken, Error>
pub fn verify_signature(&self) -> Result<bool, Error>
pub fn is_valid_at(&self, now: u64) -> bool
pub fn validate_time(&self, now: u64) -> Result<(), Error>
pub fn matches_context(&self, context: &GovernedCallChainContext) -> bool
pub fn matches_session_anchor( &self, session_anchor: &SessionAnchorReference, ) -> bool
pub fn matches_target(&self, server_id: &str, tool_name: &str) -> bool
pub fn matches_intent_hash(&self, intent_hash: &str) -> bool
pub fn matches_subject(&self, subject: &PublicKey) -> bool
pub fn from_legacy_upstream_proof( proof: &GovernedUpstreamCallChainProof, ) -> Result<CallChainContinuationToken, Error>
Trait Implementations§
Source§impl Clone for CallChainContinuationToken
impl Clone for CallChainContinuationToken
Source§fn clone(&self) -> CallChainContinuationToken
fn clone(&self) -> CallChainContinuationToken
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 CallChainContinuationToken
impl Debug for CallChainContinuationToken
Source§impl<'de> Deserialize<'de> for CallChainContinuationToken
impl<'de> Deserialize<'de> for CallChainContinuationToken
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallChainContinuationToken, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CallChainContinuationToken, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for CallChainContinuationToken
impl Serialize for CallChainContinuationToken
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 CallChainContinuationToken
impl StructuralPartialEq for CallChainContinuationToken
Auto Trait Implementations§
impl Freeze for CallChainContinuationToken
impl RefUnwindSafe for CallChainContinuationToken
impl Send for CallChainContinuationToken
impl Sync for CallChainContinuationToken
impl Unpin for CallChainContinuationToken
impl UnsafeUnpin for CallChainContinuationToken
impl UnwindSafe for CallChainContinuationToken
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