pub struct IntentFields<'a> {
pub caller: &'a str,
pub conversation_id: &'a str,
pub scope_description: &'a str,
pub currency: &'a str,
pub max_total_base_units: &'a str,
pub issued_at_unix: u64,
pub expires_at_unix: u64,
pub nonce: &'a str,
}Expand description
Named signed fields for an Intent mandate — the top-level, human-granted authorization scope.
Passed as a single struct (mirrors crate::approval::ReceiptPayload) so
two same-typed &str fields can’t be silently swapped at a call site.
Fields§
§caller: &'a strThe identity that granted this authorization (mirrors
approval_response.caller, e.g. slack:T1:U9).
conversation_id: &'a strThe conversation this intent is scoped to.
scope_description: &'a strFree-form human-readable description of what was authorized (audit / display only; not itself a scope predicate).
currency: &'a strSettlement token contract address every descendant Cart/Payment must match.
max_total_base_units: &'a strDecimal base-unit ceiling on the total this intent may ultimately authorize across every descendant Cart; empty ⇒ unbounded (a Cart’s amount is still bounded by its own signed value, just not by this intent).
issued_at_unix: u64Unix seconds this mandate was issued.
expires_at_unix: u64Unix seconds after which this mandate (and every descendant) is no longer valid.
nonce: &'a strPer-mandate unique value (mirrors approval_response.nonce).
Trait Implementations§
Source§impl<'a> Clone for IntentFields<'a>
impl<'a> Clone for IntentFields<'a>
Source§fn clone(&self) -> IntentFields<'a>
fn clone(&self) -> IntentFields<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<'a> Copy for IntentFields<'a>
Auto Trait Implementations§
impl<'a> Freeze for IntentFields<'a>
impl<'a> RefUnwindSafe for IntentFields<'a>
impl<'a> Send for IntentFields<'a>
impl<'a> Sync for IntentFields<'a>
impl<'a> Unpin for IntentFields<'a>
impl<'a> UnsafeUnpin for IntentFields<'a>
impl<'a> UnwindSafe for IntentFields<'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
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