pub struct PaymentsPrimitivesPaymentRecordsResourceAmount {
pub currency: Currency,
pub value: i64,
}Expand description
A representation of an amount of money, consisting of an amount and a currency.
Fields§
§currency: CurrencyThree-letter ISO currency code, in lowercase. Must be a supported currency.
value: i64A positive integer representing the amount in the currency’s minor unit.
For example, 100 can represent 1 USD or 100 JPY.
Trait Implementations§
Source§impl Clone for PaymentsPrimitivesPaymentRecordsResourceAmount
impl Clone for PaymentsPrimitivesPaymentRecordsResourceAmount
Source§fn clone(&self) -> PaymentsPrimitivesPaymentRecordsResourceAmount
fn clone(&self) -> PaymentsPrimitivesPaymentRecordsResourceAmount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl FromValueOpt for PaymentsPrimitivesPaymentRecordsResourceAmount
impl FromValueOpt for PaymentsPrimitivesPaymentRecordsResourceAmount
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PaymentsPrimitivesPaymentRecordsResourceAmount
impl RefUnwindSafe for PaymentsPrimitivesPaymentRecordsResourceAmount
impl Send for PaymentsPrimitivesPaymentRecordsResourceAmount
impl Sync for PaymentsPrimitivesPaymentRecordsResourceAmount
impl Unpin for PaymentsPrimitivesPaymentRecordsResourceAmount
impl UnwindSafe for PaymentsPrimitivesPaymentRecordsResourceAmount
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