pub struct AllowanceEvaluationInput<'a> {
pub terms: &'a AllowanceTerms,
pub request: &'a PaymentRequestTerms,
pub trusted_time: DateTime<Utc>,
pub watermark: DateTime<Utc>,
pub usage: &'a [AllowanceUsageEntry],
}Expand description
Explicit inputs to common eligibility math, without lifecycle or payment authority.
usage must contain all committed and unresolved automatic usage for these
exact Allowance Terms, once per semantic payment key. The SDK must establish
complete, current accounting and watermark evidence before calling this API;
an empty slice cannot prove that an Allowance has never been used.
Fields§
§terms: &'a AllowanceTermsImmutable shared Allowance Terms.
request: &'a PaymentRequestTermsImmutable Payment Request terms.
trusted_time: DateTime<Utc>Wallet-supplied trusted UTC time.
watermark: DateTime<Utc>Persisted nondecreasing evaluation-time watermark, never a guessed default.
usage: &'a [AllowanceUsageEntry]Complete committed usage and unresolved reservations, excluding the candidate.
Auto Trait Implementations§
impl<'a> Freeze for AllowanceEvaluationInput<'a>
impl<'a> RefUnwindSafe for AllowanceEvaluationInput<'a>
impl<'a> Send for AllowanceEvaluationInput<'a>
impl<'a> Sync for AllowanceEvaluationInput<'a>
impl<'a> Unpin for AllowanceEvaluationInput<'a>
impl<'a> UnsafeUnpin for AllowanceEvaluationInput<'a>
impl<'a> UnwindSafe for AllowanceEvaluationInput<'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