pub struct GovernedTransactionIntent {
pub id: String,
pub server_id: String,
pub tool_name: String,
pub purpose: String,
pub max_amount: Option<MonetaryAmount>,
pub commerce: Option<GovernedCommerceContext>,
pub metered_billing: Option<MeteredBillingContext>,
pub runtime_attestation: Option<RuntimeAttestationEvidence>,
pub call_chain: Option<GovernedCallChainContext>,
pub autonomy: Option<GovernedAutonomyContext>,
pub context: Option<Value>,
}Expand description
Canonical intent attached to a governed transaction request.
Fields§
§id: StringUnique intent identifier (UUIDv7 recommended).
server_id: StringTarget tool server for this governed action.
tool_name: StringTarget tool name for this governed action.
purpose: StringHuman or policy-readable purpose for the governed action.
max_amount: Option<MonetaryAmount>Optional maximum amount explicitly approved for this intent.
commerce: Option<GovernedCommerceContext>Optional commerce approval context for seller-scoped payment rails.
metered_billing: Option<MeteredBillingContext>Optional metered-billing quote and settlement context for non-rail tools.
runtime_attestation: Option<RuntimeAttestationEvidence>Optional runtime attestation evidence bound to this governed request.
call_chain: Option<GovernedCallChainContext>Optional delegated call-chain context for upstream transaction provenance.
autonomy: Option<GovernedAutonomyContext>Optional explicit autonomy tier and delegation-bond attachment.
context: Option<Value>Optional structured context for downstream policy or operator inspection.
Implementations§
Source§impl GovernedTransactionIntent
impl GovernedTransactionIntent
Sourcepub fn binding_hash(&self) -> Result<String, Error>
pub fn binding_hash(&self) -> Result<String, Error>
Compute a stable canonical hash for approval-token binding and receipts.
Sourcepub fn upstream_call_chain_proof(
&self,
) -> Result<Option<GovernedUpstreamCallChainProof>, Error>
pub fn upstream_call_chain_proof( &self, ) -> Result<Option<GovernedUpstreamCallChainProof>, Error>
Extract the reserved upstream call-chain proof from the optional context object.
Sourcepub fn explicit_continuation_token(
&self,
) -> Result<Option<CallChainContinuationToken>, Error>
pub fn explicit_continuation_token( &self, ) -> Result<Option<CallChainContinuationToken>, Error>
Extract an explicitly attached continuation token without legacy fallback.
Sourcepub fn continuation_token(
&self,
) -> Result<Option<CallChainContinuationToken>, Error>
pub fn continuation_token( &self, ) -> Result<Option<CallChainContinuationToken>, Error>
Extract the stronger continuation token, falling back to the legacy upstream proof key.
Trait Implementations§
Source§impl Clone for GovernedTransactionIntent
impl Clone for GovernedTransactionIntent
Source§fn clone(&self) -> GovernedTransactionIntent
fn clone(&self) -> GovernedTransactionIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more