Code

Enum Code 

Source
pub enum Code {
Show 69 variants AU, FR, DE, US, HU, IE, NL, CH, TR, GB, CA, NO, IL, BR, RU, CL, ES, NC, GR, IN, TW, CN, BE, PT, DK, JP, BY, CZ, IT, LU, UA, SE, MK, SK, KZ, RS, SG, PL, RO, IS, HK, ID, KR, HR, EC, VN, LT, LV, BG, AT, ZA, FI, SI, BA, NZ, TH, IR, BD, PY, CO, GE, KE, PK, MD, EE, MX, MC, Worldwide, Other(String),
}
Expand description

The country code.

Variants§

§

AU

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

§

FR

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

§

DE

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

§

US

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

§

HU

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

§

IE

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

§

NL

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

§

CH

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

§

TR

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

§

GB

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

§

CA

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

§

NO

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

§

IL

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

§

BR

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

§

RU

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

§

CL

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

§

ES

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

§

NC

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

§

GR

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

§

IN

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

§

TW

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

§

CN

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

§

BE

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

§

PT

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

§

DK

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

§

JP

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

§

BY

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

§

CZ

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

§

IT

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

§

LU

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

§

UA

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

§

SE

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

§

MK

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

§

SK

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

§

KZ

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

§

RS

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

§

SG

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

§

PL

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

§

RO

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

§

IS

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

§

HK

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

§

ID

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

§

KR

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

§

HR

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

§

EC

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

§

VN

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

§

LT

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

§

LV

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

§

BG

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

§

AT

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

§

ZA

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

§

FI

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

§

SI

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

§

BA

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.

§

NZ

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

§

TH

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

§

IR

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

§

BD

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

§

PY

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

§

CO

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

§

GE

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

§

KE

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

§

PK

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

§

MD

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

§

EE

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

§

MX

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

§

MC

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

§

Worldwide

Country code which supports all countries.

§

Other(String)

Any unsupported country code.

Trait Implementations§

Source§

impl Clone for Code

Source§

fn clone(&self) -> Code

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Code

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for Code

Source§

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

Formats the value using the given formatter. Read more
Source§

impl From<String> for Code

Source§

fn from(code: String) -> Self

Converts to this type from the input type.
Source§

impl Hash for Code

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for Code

Source§

fn cmp(&self, other: &Code) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Code

Source§

fn eq(&self, other: &Code) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Code

Source§

fn partial_cmp(&self, other: &Code) -> Option<Ordering>

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

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Eq for Code

Source§

impl StructuralPartialEq for Code

Auto Trait Implementations§

§

impl Freeze for Code

§

impl RefUnwindSafe for Code

§

impl Send for Code

§

impl Sync for Code

§

impl Unpin for Code

§

impl UnwindSafe for Code

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

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

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

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

Source§

fn equivalent(&self, key: &K) -> bool

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

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

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,