pub struct CartFields<'a> {
pub intent_hash: &'a str,
pub caller: &'a str,
pub conversation_id: &'a str,
pub merchant_host: &'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 Cart mandate — narrows an Intent to a specific merchant and amount.
Fields§
§intent_hash: &'a strmandate_hash of the parent Intent mandate’s full signed payload.
caller: &'a strThe identity that granted this authorization (must equal the parent
Intent’s caller; checked by the chain validator, not here).
conversation_id: &'a strThe conversation this cart is scoped to.
merchant_host: &'a strThe merchant host this cart authorizes payment to (lowercased).
currency: &'a strSettlement token contract address.
amount_base_units: &'a strDecimal base-unit total for this cart.
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 CartFields<'a>
impl<'a> Clone for CartFields<'a>
Source§fn clone(&self) -> CartFields<'a>
fn clone(&self) -> CartFields<'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 CartFields<'a>
Auto Trait Implementations§
impl<'a> Freeze for CartFields<'a>
impl<'a> RefUnwindSafe for CartFields<'a>
impl<'a> Send for CartFields<'a>
impl<'a> Sync for CartFields<'a>
impl<'a> Unpin for CartFields<'a>
impl<'a> UnsafeUnpin for CartFields<'a>
impl<'a> UnwindSafe for CartFields<'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