pub struct PaymentFields<'a> {
pub cart_hash: &'a str,
pub caller: &'a str,
pub conversation_id: &'a str,
pub args_json: &'a str,
pub currency: &'a str,
pub amount_base_units: &'a str,
pub issued_at_unix: u64,
pub expires_at_unix: u64,
pub nonce: &'a str,
}Expand description
Named signed fields for a Payment mandate — the final authorization bound to one exact tool call.
Fields§
§cart_hash: &'a strmandate_hash of the parent Cart mandate’s full signed payload.
caller: &'a strThe identity that granted this authorization.
conversation_id: &'a strThe conversation this payment is scoped to.
args_json: &'a strThe exact paid_fetch args_json this payment authorizes (mirrors
approval_response.args_json binding — a captured mandate cannot be
replayed against a different call).
currency: &'a strSettlement token contract address.
amount_base_units: &'a strDecimal base-unit amount for this payment.
issued_at_unix: u64Unix seconds this mandate was issued.
expires_at_unix: u64Unix seconds after which this mandate is no longer valid.
nonce: &'a strPer-mandate unique value.
Trait Implementations§
Source§impl<'a> Clone for PaymentFields<'a>
impl<'a> Clone for PaymentFields<'a>
Source§fn clone(&self) -> PaymentFields<'a>
fn clone(&self) -> PaymentFields<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for PaymentFields<'a>
Auto Trait Implementations§
impl<'a> Freeze for PaymentFields<'a>
impl<'a> RefUnwindSafe for PaymentFields<'a>
impl<'a> Send for PaymentFields<'a>
impl<'a> Sync for PaymentFields<'a>
impl<'a> Unpin for PaymentFields<'a>
impl<'a> UnsafeUnpin for PaymentFields<'a>
impl<'a> UnwindSafe for PaymentFields<'a>
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
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> ⓘ
Converts
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> ⓘ
Converts
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