pub struct AllowanceUsageEntry { /* private fields */ }Expand description
One committed automatic payment or unresolved automatic reservation.
Both consume one count and the exact original amount. Exclude released reservations and manual payments; the SDK must deduplicate payment keys.
Implementations§
Source§impl AllowanceUsageEntry
impl AllowanceUsageEntry
Sourcepub fn new(amount: PaymentAmount, admitted_at: DateTime<Utc>) -> Result<Self>
pub fn new(amount: PaymentAmount, admitted_at: DateTime<Utc>) -> Result<Self>
Validate an amount and retain its original admission time and decimal text.
Sourcepub fn amount(&self) -> &PaymentAmount
pub fn amount(&self) -> &PaymentAmount
Exact original Payment Amount; no fee or refund adjustment is implied.
Sourcepub fn admitted_at(&self) -> DateTime<Utc>
pub fn admitted_at(&self) -> DateTime<Utc>
Original wallet admission time; settlement and retries do not change it.
Trait Implementations§
Source§impl Clone for AllowanceUsageEntry
impl Clone for AllowanceUsageEntry
Source§impl Debug for AllowanceUsageEntry
impl Debug for AllowanceUsageEntry
impl Eq for AllowanceUsageEntry
Source§impl PartialEq for AllowanceUsageEntry
impl PartialEq for AllowanceUsageEntry
impl StructuralPartialEq for AllowanceUsageEntry
Auto Trait Implementations§
impl Freeze for AllowanceUsageEntry
impl RefUnwindSafe for AllowanceUsageEntry
impl Send for AllowanceUsageEntry
impl Sync for AllowanceUsageEntry
impl Unpin for AllowanceUsageEntry
impl UnsafeUnpin for AllowanceUsageEntry
impl UnwindSafe for AllowanceUsageEntry
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