pub struct Amount {
pub value: i64,
pub currency_code: CurrencyCode,
}
Fields§
§value: i64
§currency_code: CurrencyCode
Implementations§
Trait Implementations§
source§impl<T> AddAssign<T> for Amountwhere
T: Borrow<Self>,
impl<T> AddAssign<T> for Amountwhere
T: Borrow<Self>,
source§fn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the
+=
operation. Read moresource§impl<'de> Deserialize<'de> for Amount
impl<'de> Deserialize<'de> for Amount
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 Ord for Amount
impl Ord for Amount
source§impl PartialEq for Amount
impl PartialEq for Amount
source§impl PartialOrd for Amount
impl PartialOrd for Amount
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Amount
impl Eq for Amount
impl StructuralPartialEq for Amount
Auto Trait Implementations§
impl Freeze for Amount
impl RefUnwindSafe for Amount
impl Send for Amount
impl Sync for Amount
impl Unpin for Amount
impl UnwindSafe for Amount
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