pub enum Country {
Show 60 variants
AE,
AT,
AU,
BE,
BH,
BR,
CA,
CH,
CY,
CZ,
DE,
DK,
EE,
EG,
ES,
FI,
FR,
GB,
GG,
GR,
HU,
ID,
IE,
IM,
IN,
IT,
JO,
JP,
JE,
KR,
LT,
LU,
LV,
MX,
MY,
NL,
NO,
NZ,
PE,
PH,
PL,
PT,
QA,
RO,
SA,
SE,
SG,
SI,
SK,
TH,
TW,
US,
VN,
HK,
ZA,
Unknown4Digit,
Unknown5Digit,
Unknown6Digit,
Unknown5DigitSpace,
Unknown5DigitAdditional,
}Expand description
All countries supported by the postcode extractor
Variants§
AE
UAE
AT
Austria
AU
Australia
BE
Belgium
BH
Bahrain
BR
Brazil
CA
Canada
CH
Switzerland
CY
Cyprus
CZ
Czechia
DE
Germany
DK
Denmark
EE
Estonia
EG
Egypt
ES
Spain
FI
Finland
FR
France
GB
UK
GG
Guernsey
GR
Greece
HU
Hungary
ID
Indonesia
IE
Ireland
IM
Isle of Man
IN
India
IT
Italy
JO
Jordan
JP
Japan
JE
Jersey
KR
Korea, Republic of. (South Korea)
LT
Lithuania
LU
Luxembourg
LV
Latvia
MX
Mexico
MY
Malaysia
NL
Netherlands
NO
Norway
NZ
New Zealand
PE
Peru
PH
Philippines
PL
Poland
PT
Portugal
QA
Qatar
RO
Romania
SA
Saudi Arabia
SE
Sweden
SG
Singapore
SI
Slovenia
SK
Slovakia
TH
Thailand
TW
Taiwan
US
USA
VN
Vietnam
HK
Hong Kong
ZA
South Africa
Unknown4Digit
Countries which use four digits in the postcode, e.g. 1234
Unknown5Digit
Countries which use five digits in the postcode, e.g. 12345
Unknown6Digit
Countries which use six digits in the postcode, e.g. 123456
Unknown5DigitSpace
Countries which use five digits in the postcode, but there’s a mandatory space, e.g. 653 02
Unknown5DigitAdditional
Countries with 5 digits and an additional 4 optional e.g. 12345-1234
Implementations§
Source§impl Country
impl Country
Sourcepub fn to_en_name(&self) -> String
pub fn to_en_name(&self) -> String
Convert a country into its English name
Sourcepub fn to_local_name(&self) -> String
pub fn to_local_name(&self) -> String
Convert a country into its best fit local name