pub struct Amount<'i> {
pub value: PrettyDecimal,
pub commodity: Cow<'i, str>,
}
Expand description
Amount, which is a single unit of value with a commodity.
Fields§
§value: PrettyDecimal
§commodity: Cow<'i, str>
Trait Implementations§
Source§impl<'i> IntoBoundedStatic for Amount<'i>
impl<'i> IntoBoundedStatic for Amount<'i>
Source§impl<'i> ToBoundedStatic for Amount<'i>
impl<'i> ToBoundedStatic for Amount<'i>
impl<'i> Eq for Amount<'i>
impl<'i> StructuralPartialEq for Amount<'i>
Auto Trait Implementations§
impl<'i> Freeze for Amount<'i>
impl<'i> RefUnwindSafe for Amount<'i>
impl<'i> Send for Amount<'i>
impl<'i> Sync for Amount<'i>
impl<'i> Unpin for Amount<'i>
impl<'i> UnwindSafe for Amount<'i>
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