pub struct GovernedTransactionReceiptMetadata {Show 13 fields
pub intent_id: String,
pub intent_hash: String,
pub purpose: String,
pub server_id: String,
pub tool_name: String,
pub max_amount: Option<MonetaryAmount>,
pub commerce: Option<GovernedCommerceReceiptMetadata>,
pub metered_billing: Option<MeteredBillingReceiptMetadata>,
pub approval: Option<GovernedApprovalReceiptMetadata>,
pub runtime_assurance: Option<RuntimeAssuranceReceiptMetadata>,
pub call_chain: Option<GovernedCallChainProvenance>,
pub autonomy: Option<GovernedAutonomyReceiptMetadata>,
pub economic_authorization: Option<EconomicAuthorizationReceiptMetadata>,
}Expand description
Governed transaction metadata attached to receipts.
Fields§
§intent_id: StringGoverned transaction intent identifier.
intent_hash: StringCanonical intent hash used for approval-token binding.
purpose: StringHuman or policy-readable purpose.
server_id: StringTarget tool server from the intent.
tool_name: StringTarget tool name from the intent.
max_amount: Option<MonetaryAmount>Optional explicit spend bound carried on the intent.
commerce: Option<GovernedCommerceReceiptMetadata>Optional seller-scoped commerce approval evidence.
metered_billing: Option<MeteredBillingReceiptMetadata>Optional metered-billing quote and usage evidence.
approval: Option<GovernedApprovalReceiptMetadata>Optional approval evidence that accompanied the request.
runtime_assurance: Option<RuntimeAssuranceReceiptMetadata>Optional runtime assurance evidence that accompanied the request.
call_chain: Option<GovernedCallChainProvenance>Optional delegated call-chain provenance bound through the governed intent hash.
autonomy: Option<GovernedAutonomyReceiptMetadata>Optional autonomy tier and delegation-bond attachment bound through the governed intent hash.
Optional versioned economic envelope that keeps budget, meter, rail, and settlement truth separate from the legacy receipt fields.
Implementations§
Source§impl GovernedTransactionReceiptMetadata
impl GovernedTransactionReceiptMetadata
pub fn asserted_call_chain(&self) -> Option<&GovernedCallChainContext>
pub fn verified_call_chain(&self) -> Option<&GovernedCallChainContext>
Trait Implementations§
Source§impl Clone for GovernedTransactionReceiptMetadata
impl Clone for GovernedTransactionReceiptMetadata
Source§fn clone(&self) -> GovernedTransactionReceiptMetadata
fn clone(&self) -> GovernedTransactionReceiptMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for GovernedTransactionReceiptMetadata
impl<'de> Deserialize<'de> for GovernedTransactionReceiptMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernedTransactionReceiptMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GovernedTransactionReceiptMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for GovernedTransactionReceiptMetadata
impl PartialEq for GovernedTransactionReceiptMetadata
Source§fn eq(&self, other: &GovernedTransactionReceiptMetadata) -> bool
fn eq(&self, other: &GovernedTransactionReceiptMetadata) -> bool
self and other values to be equal, and is used by ==.