[][src]Struct simple_locale::codes::currency::Subdivision

pub struct Subdivision {
    pub exponent: i8,
    pub name: Option<String>,
}

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: i8

The exponent, or scale, of the currency unit, determining it's value.

name: Option<String>

The optional name of the currency unit, localized.

Trait Implementations

impl Debug for Subdivision[src]

impl Serialize for Subdivision[src]

impl<'de> Deserialize<'de> for Subdivision[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]