pub struct Subdivision {
pub exponent: i8,
pub name: Option<String>,
}Expand description
Represents a sub-division (minor currency unit) of a currency.
For example, the US Dollar (USD) has a single sub-division in that
each 100th of a dollar is named a cent. This would be represented
as Subdivision { exponent: 2, name: Somme("cent") }. Some
currencies have different names for different subdivisionsm, or simply
different names for the same.
Fields§
§exponent: i8The exponent, or scale, of the currency unit, determining it’s value.
name: Option<String>The optional name of the currency unit, localized.
Trait Implementations§
Source§impl Debug for Subdivision
impl Debug for Subdivision
Source§impl<'de> Deserialize<'de> for Subdivision
impl<'de> Deserialize<'de> for Subdivision
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
Auto Trait Implementations§
impl Freeze for Subdivision
impl RefUnwindSafe for Subdivision
impl Send for Subdivision
impl Sync for Subdivision
impl Unpin for Subdivision
impl UnwindSafe for Subdivision
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