Struct arch_mirrors::country::Country[][src]

pub struct Country {
    pub kind: Kind,
    pub code: Code,
}
Expand description

The country.

Fields

kind: Kind

The kind of country.

code: Code

The country code.

Implementations

impl Country[src]

pub const AUSTRALIA: Country[src]

The country Australia. It’s kind is Kind::Australia. It’s code is Code::AU. It’s constant is Country::AUSTRALIA.

pub const FRANCE: Country[src]

The country France. It’s kind is Kind::France. It’s code is Code::FR. It’s constant is Country::FRANCE.

pub const GERMANY: Country[src]

The country Germany. It’s kind is Kind::Germany. It’s code is Code::DE. It’s constant is Country::GERMANY.

pub const UNITED_STATES: Country[src]

The country United States. It’s kind is Kind::UnitedStates. It’s code is Code::US. It’s constant is Country::UNITED_STATES.

pub const HUNGARY: Country[src]

The country Hungary. It’s kind is Kind::Hungary. It’s code is Code::HU. It’s constant is Country::HUNGARY.

pub const IRELAND: Country[src]

The country Ireland. It’s kind is Kind::Ireland. It’s code is Code::IE. It’s constant is Country::IRELAND.

pub const NETHERLANDS: Country[src]

The country Netherlands. It’s kind is Kind::Netherlands. It’s code is Code::NL. It’s constant is Country::NETHERLANDS.

pub const SWITZERLAND: Country[src]

The country Switzerland. It’s kind is Kind::Switzerland. It’s code is Code::CH. It’s constant is Country::SWITZERLAND.

pub const TURKEY: Country[src]

The country Turkey. It’s kind is Kind::Turkey. It’s code is Code::TR. It’s constant is Country::TURKEY.

pub const UNITED_KINGDOM: Country[src]

The country United Kingdom. It’s kind is Kind::UnitedKingdom. It’s code is Code::GB. It’s constant is Country::UNITED_KINGDOM.

pub const CANADA: Country[src]

The country Canada. It’s kind is Kind::Canada. It’s code is Code::CA. It’s constant is Country::CANADA.

pub const NORWAY: Country[src]

The country Norway. It’s kind is Kind::Norway. It’s code is Code::NO. It’s constant is Country::NORWAY.

pub const ISRAEL: Country[src]

The country Israel. It’s kind is Kind::Israel. It’s code is Code::IL. It’s constant is Country::ISRAEL.

pub const BRAZIL: Country[src]

The country Brazil. It’s kind is Kind::Brazil. It’s code is Code::BR. It’s constant is Country::BRAZIL.

pub const RUSSIA: Country[src]

The country Russia. It’s kind is Kind::Russia. It’s code is Code::RU. It’s constant is Country::RUSSIA.

pub const CHILE: Country[src]

The country Chile. It’s kind is Kind::Chile. It’s code is Code::CL. It’s constant is Country::CHILE.

pub const SPAIN: Country[src]

The country Spain. It’s kind is Kind::Spain. It’s code is Code::ES. It’s constant is Country::SPAIN.

pub const NEW_CALEDONIA: Country[src]

The country New Caledonia. It’s kind is Kind::NewCaledonia. It’s code is Code::NC. It’s constant is Country::NEW_CALEDONIA.

pub const GREECE: Country[src]

The country Greece. It’s kind is Kind::Greece. It’s code is Code::GR. It’s constant is Country::GREECE.

pub const INDIA: Country[src]

The country India. It’s kind is Kind::India. It’s code is Code::IN. It’s constant is Country::INDIA.

pub const TAIWAN: Country[src]

The country Taiwan. It’s kind is Kind::Taiwan. It’s code is Code::TW. It’s constant is Country::TAIWAN.

pub const CHINA: Country[src]

The country China. It’s kind is Kind::China. It’s code is Code::CN. It’s constant is Country::CHINA.

pub const BELGIUM: Country[src]

The country Belgium. It’s kind is Kind::Belgium. It’s code is Code::BE. It’s constant is Country::BELGIUM.

pub const PORTUGAL: Country[src]

The country Portugal. It’s kind is Kind::Portugal. It’s code is Code::PT. It’s constant is Country::PORTUGAL.

pub const DENMARK: Country[src]

The country Denmark. It’s kind is Kind::Denmark. It’s code is Code::DK. It’s constant is Country::DENMARK.

pub const JAPAN: Country[src]

The country Japan. It’s kind is Kind::Japan. It’s code is Code::JP. It’s constant is Country::JAPAN.

pub const BELARUS: Country[src]

The country Belarus. It’s kind is Kind::Belarus. It’s code is Code::BY. It’s constant is Country::BELARUS.

pub const CZECHIA: Country[src]

The country Czechia. It’s kind is Kind::Czechia. It’s code is Code::CZ. It’s constant is Country::CZECHIA.

pub const ITALY: Country[src]

The country Italy. It’s kind is Kind::Italy. It’s code is Code::IT. It’s constant is Country::ITALY.

pub const LUXEMBOURG: Country[src]

The country Luxembourg. It’s kind is Kind::Luxembourg. It’s code is Code::LU. It’s constant is Country::LUXEMBOURG.

pub const UKRAINE: Country[src]

The country Ukraine. It’s kind is Kind::Ukraine. It’s code is Code::UA. It’s constant is Country::UKRAINE.

pub const SWEDEN: Country[src]

The country Sweden. It’s kind is Kind::Sweden. It’s code is Code::SE. It’s constant is Country::SWEDEN.

pub const NORTH_MACEDONIA: Country[src]

The country North Macedonia. It’s kind is Kind::NorthMacedonia. It’s code is Code::MK. It’s constant is Country::NORTH_MACEDONIA.

pub const SLOVAKIA: Country[src]

The country Slovakia. It’s kind is Kind::Slovakia. It’s code is Code::SK. It’s constant is Country::SLOVAKIA.

pub const KAZAKHSTAN: Country[src]

The country Kazakhstan. It’s kind is Kind::Kazakhstan. It’s code is Code::KZ. It’s constant is Country::KAZAKHSTAN.

pub const SERBIA: Country[src]

The country Serbia. It’s kind is Kind::Serbia. It’s code is Code::RS. It’s constant is Country::SERBIA.

pub const SINGAPORE: Country[src]

The country Singapore. It’s kind is Kind::Singapore. It’s code is Code::SG. It’s constant is Country::SINGAPORE.

pub const POLAND: Country[src]

The country Poland. It’s kind is Kind::Poland. It’s code is Code::PL. It’s constant is Country::POLAND.

pub const ROMANIA: Country[src]

The country Romania. It’s kind is Kind::Romania. It’s code is Code::RO. It’s constant is Country::ROMANIA.

pub const ICELAND: Country[src]

The country Iceland. It’s kind is Kind::Iceland. It’s code is Code::IS. It’s constant is Country::ICELAND.

pub const HONG_KONG: Country[src]

The country Hong Kong. It’s kind is Kind::HongKong. It’s code is Code::HK. It’s constant is Country::HONG_KONG.

pub const INDONESIA: Country[src]

The country Indonesia. It’s kind is Kind::Indonesia. It’s code is Code::ID. It’s constant is Country::INDONESIA.

pub const SOUTH_KOREA: Country[src]

The country South Korea. It’s kind is Kind::SouthKorea. It’s code is Code::KR. It’s constant is Country::SOUTH_KOREA.

pub const CROATIA: Country[src]

The country Croatia. It’s kind is Kind::Croatia. It’s code is Code::HR. It’s constant is Country::CROATIA.

pub const ECUADOR: Country[src]

The country Ecuador. It’s kind is Kind::Ecuador. It’s code is Code::EC. It’s constant is Country::ECUADOR.

pub const VIETNAM: Country[src]

The country Vietnam. It’s kind is Kind::Vietnam. It’s code is Code::VN. It’s constant is Country::VIETNAM.

pub const LITHUANIA: Country[src]

The country Lithuania. It’s kind is Kind::Lithuania. It’s code is Code::LT. It’s constant is Country::LITHUANIA.

pub const LATVIA: Country[src]

The country Latvia. It’s kind is Kind::Latvia. It’s code is Code::LV. It’s constant is Country::LATVIA.

pub const BULGARIA: Country[src]

The country Bulgaria. It’s kind is Kind::Bulgaria. It’s code is Code::BG. It’s constant is Country::BULGARIA.

pub const AUSTRIA: Country[src]

The country Austria. It’s kind is Kind::Austria. It’s code is Code::AT. It’s constant is Country::AUSTRIA.

pub const SOUTH_AFRICA: Country[src]

The country South Africa. It’s kind is Kind::SouthAfrica. It’s code is Code::ZA. It’s constant is Country::SOUTH_AFRICA.

pub const FINLAND: Country[src]

The country Finland. It’s kind is Kind::Finland. It’s code is Code::FI. It’s constant is Country::FINLAND.

pub const SLOVENIA: Country[src]

The country Slovenia. It’s kind is Kind::Slovenia. It’s code is Code::SI. It’s constant is Country::SLOVENIA.

pub const BOSNIA_AND_HERZEGOVINA: Country[src]

The country Bosnia and Herzegovina. It’s kind is Kind::BosniaAndHerzegovina. It’s code is Code::BA. It’s constant is Country::BOSNIA_AND_HERZEGOVINA.

pub const NEW_ZEALAND: Country[src]

The country New Zealand. It’s kind is Kind::NewZealand. It’s code is Code::NZ. It’s constant is Country::NEW_ZEALAND.

pub const THAILAND: Country[src]

The country Thailand. It’s kind is Kind::Thailand. It’s code is Code::TH. It’s constant is Country::THAILAND.

pub const IRAN: Country[src]

The country Iran. It’s kind is Kind::Iran. It’s code is Code::IR. It’s constant is Country::IRAN.

pub const BANGLADESH: Country[src]

The country Bangladesh. It’s kind is Kind::Bangladesh. It’s code is Code::BD. It’s constant is Country::BANGLADESH.

pub const PARAGUAY: Country[src]

The country Paraguay. It’s kind is Kind::Paraguay. It’s code is Code::PY. It’s constant is Country::PARAGUAY.

pub const COLOMBIA: Country[src]

The country Colombia. It’s kind is Kind::Colombia. It’s code is Code::CO. It’s constant is Country::COLOMBIA.

pub const GEORGIA: Country[src]

The country Georgia. It’s kind is Kind::Georgia. It’s code is Code::GE. It’s constant is Country::GEORGIA.

pub const KENYA: Country[src]

The country Kenya. It’s kind is Kind::Kenya. It’s code is Code::KE. It’s constant is Country::KENYA.

pub const PAKISTAN: Country[src]

The country Pakistan. It’s kind is Kind::Pakistan. It’s code is Code::PK. It’s constant is Country::PAKISTAN.

pub const MOLDOVA: Country[src]

The country Moldova. It’s kind is Kind::Moldova. It’s code is Code::MD. It’s constant is Country::MOLDOVA.

pub const ESTONIA: Country[src]

The country Estonia. It’s kind is Kind::Estonia. It’s code is Code::EE. It’s constant is Country::ESTONIA.

pub const MEXICO: Country[src]

The country Mexico. It’s kind is Kind::Mexico. It’s code is Code::MX. It’s constant is Country::MEXICO.

pub const MONACO: Country[src]

The country Monaco. It’s kind is Kind::Monaco. It’s code is Code::MC. It’s constant is Country::MONACO.

pub const WORLDWIDE: Country[src]

An empty placeholder country.

pub fn new(country: &str, code: &str) -> Self[src]

Create a new country. If country or code is empty, this will be set to None.

Trait Implementations

impl Clone for Country[src]

fn clone(&self) -> Country[src]

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Debug for Country[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl Default for Country[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl Hash for Country[src]

fn hash<__H: Hasher>(&self, state: &mut __H)[src]

Feeds this value into the given Hasher. Read more

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 Ord for Country[src]

fn cmp(&self, other: &Country) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<Country> for Country[src]

fn eq(&self, other: &Country) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Country) -> bool[src]

This method tests for !=.

impl PartialOrd<Country> for Country[src]

fn partial_cmp(&self, other: &Country) -> Option<Ordering>[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for Country[src]

impl StructuralEq for Country[src]

impl StructuralPartialEq for Country[src]

Auto Trait Implementations

impl RefUnwindSafe for Country

impl Send for Country

impl Sync for Country

impl Unpin for Country

impl UnwindSafe for Country

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

pub fn equivalent(&self, key: &K) -> bool[src]

Compare self to key and return true if they are equal.

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.