pub struct VerifiedReceipt {Show 13 fields
pub reference: String,
pub amount: String,
pub currency: String,
pub recipient: String,
pub method: String,
pub timestamp: String,
pub version: u64,
pub kind: String,
pub tool_call_id: String,
pub approval_pos: String,
pub approved_args_hash: String,
pub subject: String,
pub signer_public_key: Vec<u8>,
}Expand description
A decoded payment_receipt payload after signature verification.
Fields§
§reference: StringChain/transaction reference (e.g. tx id) the receipt settles.
amount: StringDecimal amount, as a string (avoids float drift).
currency: StringCurrency / asset symbol.
recipient: StringRecipient address.
method: StringSettlement method (e.g. tempo).
timestamp: StringRFC3339 settlement timestamp.
version: u64Schema version (1 = legacy settlement-only, 2 = kind + binding
tuple present).
kind: StringThe signed event kind (payment_receipt or outbound_payment_receipt).
Callers should check it matches the kind the event was stored under —
the stored kind itself is not signed (v2; empty for v1).
tool_call_id: StringThe paid_fetch tool-call id this payment answered (v2; empty for v1).
approval_pos: StringDecimal string of the approval_request log position (v2; empty for v1).
approved_args_hash: Stringsha256 hex of the approved args_json (v2; empty for v1).
subject: StringOpaque principal the spend is attributed to (v2; empty for v1).
signer_public_key: Vec<u8>The verified signer’s public key (encoded).
Trait Implementations§
Source§impl Clone for VerifiedReceipt
impl Clone for VerifiedReceipt
Source§fn clone(&self) -> VerifiedReceipt
fn clone(&self) -> VerifiedReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for VerifiedReceipt
impl RefUnwindSafe for VerifiedReceipt
impl Send for VerifiedReceipt
impl Sync for VerifiedReceipt
impl Unpin for VerifiedReceipt
impl UnsafeUnpin for VerifiedReceipt
impl UnwindSafe for VerifiedReceipt
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more