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 Ord for Code
impl Ord for Code
Source§impl PartialOrd for Code
impl PartialOrd for Code
impl Eq for Code
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.