#[repr(u16)]pub enum TransitCurrency {
Show 179 variants
UnitedArabEmiratesDirham = 0,
AfghanAfghani = 1,
AlbanianLek = 2,
ArmenianDram = 3,
NetherlandsAntilleanGuilder = 4,
AngolanKwanza = 5,
ArgentinePeso = 6,
AustralianDollar = 7,
ArubanFlorin = 8,
AzerbaijaniManat = 9,
BosniaAndHerzegovinaConvertibleMark = 10,
BarbadosDollar = 11,
BangladeshiTaka = 12,
BulgarianLev = 13,
BahrainiDinar = 14,
BurundianFranc = 15,
BermudianDollar = 16,
BruneiDollar = 17,
Boliviano = 18,
BolivianMvdol = 19,
BrazilianReal = 20,
BahamianDollar = 21,
BhutaneseNgultrum = 22,
BotswanaPula = 23,
BelarusianRuble = 24,
BelizeDollar = 25,
CanadianDollar = 26,
CongoleseFranc = 27,
WirEuro = 28,
SwissFranc = 29,
WirFranc = 30,
UnidadDeFomento = 31,
ChileanPeso = 32,
RenminbiYuan = 33,
ColombianPeso = 34,
UnidadDeValorReal = 35,
CostaRicanColon = 36,
CubanConvertiblePeso = 37,
CubanPeso = 38,
CapeVerdeanEscudo = 39,
CzechKoruna = 40,
DjiboutianFranc = 41,
DanishKrone = 42,
DominicanPeso = 43,
AlgerianDinar = 44,
EgyptianPound = 45,
EritreanNakfa = 46,
EthiopianBirr = 47,
Euro = 48,
FijiDollar = 49,
FalklandIslandsPound = 50,
PoundSterling = 51,
GeorgianLari = 52,
GhanaianCedi = 53,
GibraltarPound = 54,
GambianDalasi = 55,
GuineanFranc = 56,
GuatemalanQuetzal = 57,
GuyaneseDollar = 58,
HongKongDollar = 59,
HonduranLempira = 60,
CroatianKuna = 61,
HaitianGourde = 62,
HungarianForint = 63,
IndonesianRupiah = 64,
IsraeliNewShekel = 65,
IndianRupee = 66,
IraqiDinar = 67,
IranianRial = 68,
IcelandicKrona = 69,
JamaicanDollar = 70,
JordanianDinar = 71,
JapaneseYen = 72,
KenyanShilling = 73,
KyrgyzstaniSom = 74,
CambodianRiel = 75,
ComoroFranc = 76,
NorthKoreanWon = 77,
SouthKoreanWon = 78,
KuwaitiDinar = 79,
CaymanIslandsDollar = 80,
KazakhstaniTenge = 81,
LaoKip = 82,
LebanesePound = 83,
SriLankanRupee = 84,
LiberianDollar = 85,
LesothoLoti = 86,
LibyanDinar = 87,
MoroccanDirham = 88,
MoldovanLeu = 89,
MalagasyAriary = 90,
MacedonianDenar = 91,
MyanmarKyat = 92,
MongolianTogrog = 93,
MacanesePataca = 94,
MauritanianOuguiya = 95,
MauritianRupee = 96,
MaldivianRufiyaa = 97,
MalawianKwacha = 98,
MexicanPeso = 99,
MexicanUnidadDeInversion = 100,
MalaysianRinggit = 101,
MozambicanMetical = 102,
NamibianDollar = 103,
NigerianNaira = 104,
NicaraguanCordoba = 105,
NorwegianKrone = 106,
NepaleseRupee = 107,
NewZealandDollar = 108,
OmaniRial = 109,
PanamanianBalboa = 110,
PeruvianSol = 111,
PapuaNewGuineanKina = 112,
PhilippinePeso = 113,
PakistaniRupee = 114,
PolishZloty = 115,
ParaguayanGuarani = 116,
QatariRiyal = 117,
RomanianLeu = 118,
SerbianDinar = 119,
RussianRuble = 120,
RwandanFranc = 121,
SaudiRiyal = 122,
SolomonIslandsDollar = 123,
SeychellesRupee = 124,
SudanesePound = 125,
SwedishKrona = 126,
SingaporeDollar = 127,
SaintHelenaPound = 128,
SierraLeoneanLeone = 129,
SomaliShilling = 130,
SurinameseDollar = 131,
SouthSudanesePound = 132,
SaoTomeAndPrincipeDobra = 133,
SalvadoranColon = 134,
SyrianPound = 135,
SwaziLilangeni = 136,
ThaiBaht = 137,
TajikistaniSomoni = 138,
TurkmenistanManat = 139,
TunisianDinar = 140,
TonganPaanga = 141,
TurkishLira = 142,
TrinidadAndTobagoDollar = 143,
NewTaiwanDollar = 144,
TanzanianShilling = 145,
UkrainianHryvnia = 146,
UgandanShilling = 147,
UnitedStatesDollar = 148,
UnitedStatesDollarNextDay = 149,
UruguayPesoEnUnidadesIndexadas = 150,
UruguayanPeso = 151,
UnidadPrevisional = 152,
UzbekistanSom = 153,
VenezuelanBolivarSoberano = 154,
VietnameseDong = 155,
VanuatuVatu = 156,
SamoanTala = 157,
CfaFrancBeac = 158,
Silver = 159,
Gold = 160,
EuropeanCompositeUnit = 161,
EuropeanMonetaryUnit = 162,
EuropeanUnitOfAccount9 = 163,
EuropeanUnitOfAccount17 = 164,
EastCaribbeanDollar = 165,
SpecialDrawingRights = 166,
CfaFrancBceao = 167,
Palladium = 168,
CfpFranc = 169,
Platinum = 170,
Sucre = 171,
CodeReservedForTesting = 172,
AdbUnitOfAccount = 173,
NoCurrency = 174,
YemeniRial = 175,
SouthAfricanRand = 176,
ZambianKwacha = 177,
ZimbabweanDollar = 178,
}
Expand description
A comprehensive list of currencies. At the moment this is used only for
Google Maps Transit Directions. The intent behind having Serde convert
the currency code String
to an enum
is for efficient currency
conversions, information lookups, and manipulation in the future.
Variants§
UnitedArabEmiratesDirham = 0
AfghanAfghani = 1
AlbanianLek = 2
ArmenianDram = 3
NetherlandsAntilleanGuilder = 4
AngolanKwanza = 5
ArgentinePeso = 6
AustralianDollar = 7
ArubanFlorin = 8
AzerbaijaniManat = 9
BosniaAndHerzegovinaConvertibleMark = 10
BarbadosDollar = 11
BangladeshiTaka = 12
BulgarianLev = 13
BahrainiDinar = 14
BurundianFranc = 15
BermudianDollar = 16
BruneiDollar = 17
Boliviano = 18
BolivianMvdol = 19
BrazilianReal = 20
BahamianDollar = 21
BhutaneseNgultrum = 22
BotswanaPula = 23
BelarusianRuble = 24
BelizeDollar = 25
CanadianDollar = 26
CongoleseFranc = 27
WirEuro = 28
SwissFranc = 29
WirFranc = 30
UnidadDeFomento = 31
ChileanPeso = 32
RenminbiYuan = 33
ColombianPeso = 34
UnidadDeValorReal = 35
CostaRicanColon = 36
CubanConvertiblePeso = 37
CubanPeso = 38
CapeVerdeanEscudo = 39
CzechKoruna = 40
DjiboutianFranc = 41
DanishKrone = 42
DominicanPeso = 43
AlgerianDinar = 44
EgyptianPound = 45
EritreanNakfa = 46
EthiopianBirr = 47
Euro = 48
FijiDollar = 49
FalklandIslandsPound = 50
PoundSterling = 51
GeorgianLari = 52
GhanaianCedi = 53
GibraltarPound = 54
GambianDalasi = 55
GuineanFranc = 56
GuatemalanQuetzal = 57
GuyaneseDollar = 58
HongKongDollar = 59
HonduranLempira = 60
CroatianKuna = 61
HaitianGourde = 62
HungarianForint = 63
IndonesianRupiah = 64
IsraeliNewShekel = 65
IndianRupee = 66
IraqiDinar = 67
IranianRial = 68
IcelandicKrona = 69
JamaicanDollar = 70
JordanianDinar = 71
JapaneseYen = 72
KenyanShilling = 73
KyrgyzstaniSom = 74
CambodianRiel = 75
ComoroFranc = 76
NorthKoreanWon = 77
SouthKoreanWon = 78
KuwaitiDinar = 79
CaymanIslandsDollar = 80
KazakhstaniTenge = 81
LaoKip = 82
LebanesePound = 83
SriLankanRupee = 84
LiberianDollar = 85
LesothoLoti = 86
LibyanDinar = 87
MoroccanDirham = 88
MoldovanLeu = 89
MalagasyAriary = 90
MacedonianDenar = 91
MyanmarKyat = 92
MongolianTogrog = 93
MacanesePataca = 94
MauritanianOuguiya = 95
MauritianRupee = 96
MaldivianRufiyaa = 97
MalawianKwacha = 98
MexicanPeso = 99
MexicanUnidadDeInversion = 100
MalaysianRinggit = 101
MozambicanMetical = 102
NamibianDollar = 103
NigerianNaira = 104
NicaraguanCordoba = 105
NorwegianKrone = 106
NepaleseRupee = 107
NewZealandDollar = 108
OmaniRial = 109
PanamanianBalboa = 110
PeruvianSol = 111
PapuaNewGuineanKina = 112
PhilippinePeso = 113
PakistaniRupee = 114
PolishZloty = 115
ParaguayanGuarani = 116
QatariRiyal = 117
RomanianLeu = 118
SerbianDinar = 119
RussianRuble = 120
RwandanFranc = 121
SaudiRiyal = 122
SolomonIslandsDollar = 123
SeychellesRupee = 124
SudanesePound = 125
SwedishKrona = 126
SingaporeDollar = 127
SaintHelenaPound = 128
SierraLeoneanLeone = 129
SomaliShilling = 130
SurinameseDollar = 131
SouthSudanesePound = 132
SaoTomeAndPrincipeDobra = 133
SalvadoranColon = 134
SyrianPound = 135
SwaziLilangeni = 136
ThaiBaht = 137
TajikistaniSomoni = 138
TurkmenistanManat = 139
TunisianDinar = 140
TonganPaanga = 141
TurkishLira = 142
TrinidadAndTobagoDollar = 143
NewTaiwanDollar = 144
TanzanianShilling = 145
UkrainianHryvnia = 146
UgandanShilling = 147
UnitedStatesDollar = 148
UnitedStatesDollarNextDay = 149
UruguayPesoEnUnidadesIndexadas = 150
UruguayanPeso = 151
UnidadPrevisional = 152
UzbekistanSom = 153
VenezuelanBolivarSoberano = 154
VietnameseDong = 155
VanuatuVatu = 156
SamoanTala = 157
CfaFrancBeac = 158
Silver = 159
Gold = 160
EuropeanCompositeUnit = 161
EuropeanMonetaryUnit = 162
EuropeanUnitOfAccount9 = 163
EuropeanUnitOfAccount17 = 164
EastCaribbeanDollar = 165
SpecialDrawingRights = 166
CfaFrancBceao = 167
Palladium = 168
CfpFranc = 169
Platinum = 170
Sucre = 171
CodeReservedForTesting = 172
AdbUnitOfAccount = 173
NoCurrency = 174
YemeniRial = 175
SouthAfricanRand = 176
ZambianKwacha = 177
ZimbabweanDollar = 178
Implementations§
Trait Implementations§
source§impl Clone for TransitCurrency
impl Clone for TransitCurrency
source§fn clone(&self) -> TransitCurrency
fn clone(&self) -> TransitCurrency
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for TransitCurrency
impl Debug for TransitCurrency
source§impl Default for TransitCurrency
impl Default for TransitCurrency
source§fn default() -> TransitCurrency
fn default() -> TransitCurrency
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TransitCurrency
impl<'de> Deserialize<'de> for TransitCurrency
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Manual implementation of Deserialize
for serde
. This will take
advantage of the phf
-powered TryFrom
implementation for this type.
source§impl Display for TransitCurrency
impl Display for TransitCurrency
source§impl From<&TransitCurrency> for &str
impl From<&TransitCurrency> for &str
source§fn from(currency: &TransitCurrency) -> Self
fn from(currency: &TransitCurrency) -> Self
Converts a TransitCurrency
enum to a String
that contains an ISO
4217 currency code.
source§impl From<&TransitCurrency> for String
impl From<&TransitCurrency> for String
source§fn from(transit_currency: &TransitCurrency) -> Self
fn from(transit_currency: &TransitCurrency) -> Self
Converts a TransitCurrency
enum to a String
that contains an ISO
4217 currency code.
source§impl FromStr for TransitCurrency
impl FromStr for TransitCurrency
source§impl Hash for TransitCurrency
impl Hash for TransitCurrency
source§impl Ord for TransitCurrency
impl Ord for TransitCurrency
source§fn cmp(&self, other: &TransitCurrency) -> Ordering
fn cmp(&self, other: &TransitCurrency) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TransitCurrency
impl PartialEq for TransitCurrency
source§fn eq(&self, other: &TransitCurrency) -> bool
fn eq(&self, other: &TransitCurrency) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TransitCurrency
impl PartialOrd for TransitCurrency
source§fn partial_cmp(&self, other: &TransitCurrency) -> Option<Ordering>
fn partial_cmp(&self, other: &TransitCurrency) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for TransitCurrency
impl Serialize for TransitCurrency
source§impl TryFrom<&str> for TransitCurrency
impl TryFrom<&str> for TransitCurrency
impl Eq for TransitCurrency
impl StructuralPartialEq for TransitCurrency
Auto Trait Implementations§
impl RefUnwindSafe for TransitCurrency
impl Send for TransitCurrency
impl Sync for TransitCurrency
impl Unpin for TransitCurrency
impl UnwindSafe for TransitCurrency
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
Mutably borrows from an owned value. Read more
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.