pub struct MoneyV1 {
pub currency: CurrencyCode,
pub coefficient: i128,
pub scale: u8,
}Expand description
Sub-cent precision money. NOT floating point. Rounding to legal minor units happens only at invoice time.
Fields§
§currency: CurrencyCode§coefficient: i128§scale: u8Trait Implementations§
Source§impl<'de> Deserialize<'de> for MoneyV1
impl<'de> Deserialize<'de> for MoneyV1
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
impl Eq for MoneyV1
impl StructuralPartialEq for MoneyV1
Auto Trait Implementations§
impl Freeze for MoneyV1
impl RefUnwindSafe for MoneyV1
impl Send for MoneyV1
impl Sync for MoneyV1
impl Unpin for MoneyV1
impl UnsafeUnpin for MoneyV1
impl UnwindSafe for MoneyV1
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