pub enum Currency {
Show 56 variants
AED,
ARS,
AUD,
BDT,
BHD,
BRL,
BTC,
CAD,
CHF,
CLP,
CNY,
COP,
CZK,
DKK,
EGP,
ETH,
EUR,
GBP,
HKD,
HUF,
IDR,
ILS,
INR,
ISK,
JPY,
KES,
KRW,
KWD,
LKR,
MAD,
MXN,
MYR,
NGN,
NOK,
NONE,
NZD,
PEN,
PHP,
PKR,
PLN,
QAR,
RON,
RSD,
RUB,
SAR,
SEK,
SGD,
THB,
TND,
TRY,
TWD,
USD,
USDT,
VES,
VND,
ZAR,
}Expand description
Currency codes as per ISO 4217 standard.
Variants§
AED
Arab Emirates Dirham.
ARS
Argentine Peso.
AUD
Australian Dollar.
BDT
Bangladeshi Taka.
BHD
Bahraini Dinar.
BRL
Brazilian Real.
BTC
Bitcoin.
CAD
Canadian Dollar.
CHF
Swiss Franc.
CLP
Chilean Peso.
CNY
Chinese Yuan.
COP
Colombian Peso.
CZK
Czech Koruna.
DKK
Danish Krone.
EGP
Egyptian Pound.
ETH
Ether (Ethereum).
EUR
Euro.
GBP
British Pound Sterling.
HKD
Hong Kong Dollar.
HUF
Hungarian Forint.
IDR
Indonesian Rupiah.
ILS
Israeli New Shekel.
INR
Indian Rupee.
ISK
Icelandic Krona.
JPY
Japanese Yen.
KES
Kenyan Shilling.
KRW
South Korean Won.
KWD
Kuwaiti Dinar.
LKR
Sri Lankan Rupee.
MAD
Moroccan Dirham.
MXN
Mexican Peso.
MYR
Malaysian Ringgit.
NGN
Nigerian Naira.
NOK
Norwegian Krone.
NONE
Unspecified currency.
NZD
New Zealand Dollar.
PEN
Peruvian Sol.
PHP
Philippine Peso.
PKR
Pakistani Rupee.
PLN
Polish Zloty.
QAR
Qatari Riyal.
RON
Romanian Leu.
RSD
Serbian Dinar.
RUB
Russian Ruble.
SAR
Saudi Riyal.
SEK
Swedish Krona.
SGD
Singapore Dollar.
THB
Thai Baht.
TND
Tunisian Dinar.
TRY
Turkish Lira.
TWD
New Taiwan Dollar.
USD
United States Dollar.
USDT
Tether.
VES
Venezuelan Bolívar.
VND
Vietnamese Dong.
ZAR
South African Rand.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Currency
impl<'de> Deserialize<'de> for Currency
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for Currency
impl Eq for Currency
impl StructuralPartialEq for Currency
Auto Trait Implementations§
impl Freeze for Currency
impl RefUnwindSafe for Currency
impl Send for Currency
impl Sync for Currency
impl Unpin for Currency
impl UnwindSafe for Currency
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,
§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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.