pub struct AllowanceTerms { /* private fields */ }Expand description
Immutable constraints proposed for one Allowance.
Implementations§
Source§impl AllowanceTerms
impl AllowanceTerms
Sourcepub fn builder(asset: impl Into<String>) -> AllowanceTermsBuilder
pub fn builder(asset: impl Into<String>) -> AllowanceTermsBuilder
Start building Allowance Terms for an exact, case-sensitive asset.
Sourcepub fn per_payment_amount(&self) -> Option<&AllowanceAmountRange>
pub fn per_payment_amount(&self) -> Option<&AllowanceAmountRange>
Access the optional inclusive per-payment range.
Sourcepub fn period_limits(&self) -> &[AllowancePeriodLimit]
pub fn period_limits(&self) -> &[AllowancePeriodLimit]
Access all independently applicable period limits.
Sourcepub fn lifetime_amount_limit(&self) -> Option<&str>
pub fn lifetime_amount_limit(&self) -> Option<&str>
Access the optional lifetime amount ceiling decimal spelling.
Sourcepub fn active_from(&self) -> Option<&str>
pub fn active_from(&self) -> Option<&str>
Access the optional inclusive first eligible instant.
Sourcepub fn expires_at(&self) -> Option<&str>
pub fn expires_at(&self) -> Option<&str>
Access the optional exclusive first ineligible instant.
Sourcepub fn allowed_payment_endpoint_identifiers(
&self,
) -> Option<&[PaymentEndpointIdentifier]>
pub fn allowed_payment_endpoint_identifiers( &self, ) -> Option<&[PaymentEndpointIdentifier]>
Access the optional non-empty Payment Endpoint Identifier allowlist.
Trait Implementations§
Source§impl Clone for AllowanceTerms
impl Clone for AllowanceTerms
Source§impl Debug for AllowanceTerms
impl Debug for AllowanceTerms
impl Eq for AllowanceTerms
Source§impl PartialEq for AllowanceTerms
impl PartialEq for AllowanceTerms
impl StructuralPartialEq for AllowanceTerms
Auto Trait Implementations§
impl Freeze for AllowanceTerms
impl RefUnwindSafe for AllowanceTerms
impl Send for AllowanceTerms
impl Sync for AllowanceTerms
impl Unpin for AllowanceTerms
impl UnsafeUnpin for AllowanceTerms
impl UnwindSafe for AllowanceTerms
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