Struct iso3166_1::CountryCode
[−]
[src]
pub struct CountryCode<'a> { pub alpha2: &'a str, pub alpha3: &'a str, pub name: &'a str, pub num: &'a str, }
Struct that contains the data for each Country Code defined by ISO 3166-1, including the following pieces of information:
alpha2
- Two-character Alpha-2 code.alpha3
- Three-character Alpha-3 code.name
- English short name of country.num
- Numeric code of country.
Derives from Clone and Debug.
Fields
alpha2: &'a str
alpha3: &'a str
name: &'a str
num: &'a str
Trait Implementations
impl<'a> Clone for CountryCode<'a>
[src]
fn clone(&self) -> CountryCode<'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