pub struct CurrencyAndAmount {
pub currency: Currency,
pub minor_units: i64,
}
Expand description
Representation of money
Fields§
§currency: Currency
ISO-4217 3 character currency code
minor_units: i64
Amount in the minor units of the given currency
Trait Implementations§
Source§impl Clone for CurrencyAndAmount
impl Clone for CurrencyAndAmount
Source§fn clone(&self) -> CurrencyAndAmount
fn clone(&self) -> CurrencyAndAmount
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 Debug for CurrencyAndAmount
impl Debug for CurrencyAndAmount
Source§impl<'de> Deserialize<'de> for CurrencyAndAmount
impl<'de> Deserialize<'de> for CurrencyAndAmount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CurrencyAndAmount
impl PartialEq for CurrencyAndAmount
impl Copy for CurrencyAndAmount
impl Eq for CurrencyAndAmount
impl StructuralPartialEq for CurrencyAndAmount
Auto Trait Implementations§
impl Freeze for CurrencyAndAmount
impl RefUnwindSafe for CurrencyAndAmount
impl Send for CurrencyAndAmount
impl Sync for CurrencyAndAmount
impl Unpin for CurrencyAndAmount
impl UnwindSafe for CurrencyAndAmount
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