[][src]Struct simple_locale::codes::country::CountryInfo

pub struct CountryInfo {
    pub code: String,
    pub short_code: String,
    pub country_code: u16,
    pub region_code: Option<u16>,
    pub sub_region_code: Option<u16>,
    pub intermediate_region_code: Option<u16>,
}

A representation of registered country data maintained by ISO.

Fields

code: String

The ISO-3166, part 2, 3-character identifier of the country. This is the primary identifier.

short_code: String

The ISO-3166, part 1, 2-character identifier of the country.

country_code: u16

The numeric code for the RegionInfo that represents the country.

region_code: Option<u16>

The optional numeric code for the RegionInfo that represents the region.

sub_region_code: Option<u16>

The optional numeric code for the RegionInfo that represents the sub-region.

intermediate_region_code: Option<u16>

The optional numeric code for the RegionInfo that represents the intermediate region.

Trait Implementations

impl Debug for CountryInfo[src]

impl Serialize for CountryInfo[src]

impl<'de> Deserialize<'de> for CountryInfo[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> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<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]