pub struct Amount {
pub number: Decimal,
pub currency: Currency,
}
Expand description
A Decimal
number plus the currency.
Fields§
§number: Decimal
§currency: Currency
Trait Implementations§
source§impl PartialEq<Amount> for Amount
impl PartialEq<Amount> for Amount
impl Eq for Amount
impl StructuralEq for Amount
impl StructuralPartialEq for Amount
Auto Trait Implementations§
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