#[non_exhaustive]pub enum CurrencyCode {
Show 31 variants
USD,
EUR,
GBP,
JPY,
AUD,
CAD,
CHF,
HKD,
SGD,
SEK,
ARS,
BRL,
CNY,
COP,
CZK,
DKK,
HUF,
ILS,
INR,
KRW,
MXN,
NOK,
NZD,
PLN,
RUB,
THB,
TRY,
TWD,
UAH,
VND,
ZAR,
}
Expand description
Supported three-letter ISO 4217 currency code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
USD
United States Dollar
EUR
Euro
GBP
Pound Sterling
JPY
Japanese Yen
AUD
Australian Dollar
CAD
Canadian Dollar
CHF
Swiss Franc
HKD
Hong Kong Dollar
SGD
Singapore Dollar
SEK
Swedish Krona
ARS
Argentine Peso
BRL
Brazilian Real
CNY
Chinese Yuan
COP
Colombian Peso
CZK
Czech Koruna
DKK
Danish Krone
HUF
Hungarian Forint
ILS
Israeli Shekel
INR
Indian Rupee
KRW
South Korean Won
MXN
Mexican Peso
NOK
Norwegian Krone
NZD
New Zealand Dollar
PLN
Polish Zloty
RUB
Russian Ruble
THB
Thai Baht
TRY
Turkish Lira
TWD
New Taiwan Dollar
UAH
Ukrainian Hryvnia
VND
Vietnamese Dong
ZAR
South African Rand
Trait Implementations§
Source§impl Clone for CurrencyCode
impl Clone for CurrencyCode
Source§fn clone(&self) -> CurrencyCode
fn clone(&self) -> CurrencyCode
Returns a duplicate 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 CurrencyCode
impl Debug for CurrencyCode
Source§impl<'de> Deserialize<'de> for CurrencyCode
impl<'de> Deserialize<'de> for CurrencyCode
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for CurrencyCode
impl Hash for CurrencyCode
Source§impl Ord for CurrencyCode
impl Ord for CurrencyCode
Source§fn cmp(&self, other: &CurrencyCode) -> Ordering
fn cmp(&self, other: &CurrencyCode) -> 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 CurrencyCode
impl PartialEq for CurrencyCode
Source§impl PartialOrd for CurrencyCode
impl PartialOrd for CurrencyCode
Source§impl Serialize for CurrencyCode
impl Serialize for CurrencyCode
impl Eq for CurrencyCode
impl StructuralPartialEq for CurrencyCode
Auto Trait Implementations§
impl Freeze for CurrencyCode
impl RefUnwindSafe for CurrencyCode
impl Send for CurrencyCode
impl Sync for CurrencyCode
impl Unpin for CurrencyCode
impl UnwindSafe for CurrencyCode
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
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
Compare self to
key
and return true
if they are equal.