Struct iso4217::CurrencyCode
[−]
[src]
pub struct CurrencyCode<'a> { pub alpha3: &'a str, pub countries: Vec<&'a str>, pub exp: i8, pub name: &'a str, pub num: &'a str, }
Struct that contains the data for each Currency Code defined by ISO 4217, including the following pieces of information:
- alpha3: str of a 3-letter code of the currency;
- countries: vector of alpha2 codes for countries that use the currency;
- exp: i8 of the decimal places of the currency;
- name: str of the fully readable and used name of the currency;
- num: str of the 3-digit numeric code assigned to the currency.
This struct is public and derives from Clone and Debug.
Fields
alpha3: &'a str
countries: Vec<&'a str>
exp: i8
name: &'a str
num: &'a str
Trait Implementations
impl<'a> Debug for CurrencyCode<'a>
[src]
impl<'a> Clone for CurrencyCode<'a>
[src]
fn clone(&self) -> CurrencyCode<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more