pub enum CountryCode {
Show 250 variants ABW, AFG, AGO, AIA, ALA, ALB, AND, ARE, ARG, ARM, ASM, ATA, ATF, ATG, AUS, AUT, AZE, BDI, BEL, BEN, BES, BFA, BGD, BGR, BHR, BHS, BIH, BLM, BLR, BLZ, BMU, BOL, BRA, BRB, BRN, BTN, BVT, BWA, CAF, CAN, CCK, CHE, CHL, CHN, CIV, CMR, COD, COG, COK, COL, COM, CPV, CRI, CUB, CUW, CXR, CYM, CYP, CZE, DEU, DJI, DMA, DNK, DOM, DZA, ECU, EGY, ERI, ESH, ESP, EST, ETH, FIN, FJI, FLK, FRA, FRO, FSM, GAB, GBR, GEO, GGY, GHA, GIB, GIN, GLP, GMB, GNB, GNQ, GRC, GRD, GRL, GTM, GUF, GUM, GUY, HKG, HMD, HND, HRV, HTI, HUN, IDN, IMN, IND, IOT, IRL, IRN, IRQ, ISL, ISR, ITA, JAM, JEY, JOR, JPN, KAZ, KEN, KGZ, KHM, KIR, KNA, KOR, KWT, LAO, LBN, LBR, LBY, LCA, LIE, LKA, LSO, LTU, LUX, LVA, MAC, MAF, MAR, MCO, MDA, MDG, MDV, MEX, MHL, MKD, MLI, MLT, MMR, MNE, MNG, MNP, MOZ, MRT, MSR, MTQ, MUS, MWI, MYS, MYT, NAM, NCL, NER, NFK, NGA, NIC, NIU, NLD, NOR, NPL, NRU, NZL, OMN, PAK, PAN, PCN, PER, PHL, PLW, PNG, POL, PRI, PRK, PRT, PRY, PSE, PYF, QAT, REU, ROU, RUS, RWA, SAU, SDN, SEN, SGP, SGS, SHN, SJM, SLB, SLE, SLV, SMR, SOM, SPM, SRB, SSD, STP, SUR, SVK, SVN, SWE, SWZ, SXM, SYC, SYR, TCA, TCD, TGO, THA, TJK, TKL, TKM, TLS, TON, TTO, TUN, TUR, TUV, TWN, TZA, UGA, UKR, UMI, URY, USA, UZB, VAT, VCT, VEN, VGB, VIR, VNM, VUT, WLF, WSM, YEM, ZAF, ZMB, ZWE, Other(Box<str>),
}

Variants

ABW

AFG

AGO

AIA

ALA

ALB

AND

ARE

ARG

ARM

ASM

ATA

ATF

ATG

AUS

AUT

AZE

BDI

BEL

BEN

BES

BFA

BGD

BGR

BHR

BHS

BIH

BLM

BLR

BLZ

BMU

BOL

BRA

BRB

BRN

BTN

BVT

BWA

CAF

CAN

CCK

CHE

CHL

CHN

CIV

CMR

COD

COG

COK

COL

COM

CPV

CRI

CUB

CUW

CXR

CYM

CYP

CZE

DEU

DJI

DMA

DNK

DOM

DZA

ECU

EGY

ERI

ESH

ESP

EST

ETH

FIN

FJI

FLK

FRA

FRO

FSM

GAB

GBR

GEO

GGY

GHA

GIB

GIN

GLP

GMB

GNB

GNQ

GRC

GRD

GRL

GTM

GUF

GUM

GUY

HKG

HMD

HND

HRV

HTI

HUN

IDN

IMN

IND

IOT

IRL

IRN

IRQ

ISL

ISR

ITA

JAM

JEY

JOR

JPN

KAZ

KEN

KGZ

KHM

KIR

KNA

KOR

KWT

LAO

LBN

LBR

LBY

LCA

LIE

LKA

LSO

LTU

LUX

LVA

MAC

MAF

MAR

MCO

MDA

MDG

MDV

MEX

MHL

MKD

MLI

MLT

MMR

MNE

MNG

MNP

MOZ

MRT

MSR

MTQ

MUS

MWI

MYS

MYT

NAM

NCL

NER

NFK

NGA

NIC

NIU

NLD

NOR

NPL

NRU

NZL

OMN

PAK

PAN

PCN

PER

PHL

PLW

PNG

POL

PRI

PRK

PRT

PRY

PSE

PYF

QAT

REU

ROU

RUS

RWA

SAU

SDN

SEN

SGP

SGS

SHN

SJM

SLB

SLE

SLV

SMR

SOM

SPM

SRB

SSD

STP

SUR

SVK

SVN

SWE

SWZ

SXM

SYC

SYR

TCA

TCD

TGO

THA

TJK

TKL

TKM

TLS

TON

TTO

TUN

TUR

TUV

TWN

TZA

UGA

UKR

UMI

URY

USA

UZB

VAT

VCT

VEN

VGB

VIR

VNM

VUT

WLF

WSM

YEM

ZAF

ZMB

ZWE

Other(Box<str>)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

Feeds this value into the given Hasher. Read more

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

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

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

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

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

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.