pub struct Amount {
pub number: Decimal,
pub commodity: CommodityName,
}Expand description
A decimal quantity paired with its commodity.
Fields§
§number: DecimalNumeric quantity, represented exactly as a decimal.
commodity: CommodityNameCommodity in which the quantity is expressed.
Trait Implementations§
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 UnsafeUnpin 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