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

Trait Implementations

impl<'a> Clone for CountryCode<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for CountryCode<'a>
[src]

Formats the value using the given formatter.