[][src]Struct dubp_documents::CurrencyName

pub struct CurrencyName(pub String);

Currency name

Methods

impl CurrencyName[src]

pub fn from(currency_code: [u8; 2]) -> Result<Self, CurrencyCodeError>[src]

Convert bytes to CurrencyName

pub fn from_u16(currency_code: u16) -> Result<Self, CurrencyCodeError>[src]

Convert u16 to CurrencyName

pub fn to_bytes(&self) -> Result<[u8; 2], CurrencyCodeError>[src]

Convert CurrencyName to bytes

Trait Implementations

impl Eq for CurrencyName[src]

impl Clone for CurrencyName[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<CurrencyName> for CurrencyName[src]

impl Default for CurrencyName[src]

impl Hash for CurrencyName[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for CurrencyName[src]

impl Display for CurrencyName[src]

impl Serialize for CurrencyName[src]

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

Auto Trait Implementations

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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