Skip to main content

Currency

Enum Currency 

Source
#[non_exhaustive]
pub enum Currency {
Show 182 variants Aed, Afn, All, Amd, Ang, Aoa, Ars, Aud, Awg, Azn, Bam, Bbd, Bdt, Bgn, Bhd, Bif, Bmd, Bnd, Bob, Bov, Brl, Bsd, Btn, Bwp, Byn, Byr, Bzd, Cad, Cdf, Che, Chf, Chw, Clf, Clp, Cny, Cop, Cou, Crc, Cuc, Cup, Cve, Czk, Djf, Dkk, Dop, Dzd, Egp, Ern, Etb, Eur, Fjd, Fkp, Gbp, Gel, Ghs, Gip, Gmd, Gnf, Gtq, Gyd, Hkd, Hnl, Hrk, Htg, Huf, Idr, Ils, Inr, Iqd, Irr, Isk, Jmd, Jod, Jpy, Kes, Kgs, Khr, Kmf, Kpw, Krw, Kwd, Kyd, Kzt, Lak, Lbp, Lkr, Lrd, Lsl, Ltl, Lyd, Mad, Mdl, Mga, Mkd, Mmk, Mnt, Mop, Mro, Mur, Mvr, Mwk, Mxn, Mxv, Myr, Mzn, Nad, Ngn, Nio, Nok, Npr, Nzd, Omr, Pab, Pen, Pgk, Php, Pkr, Pln, Pyg, Qar, Ron, Rsd, Rub, Rur, Rwf, Sar, Sbd, Scr, Sdg, Sek, Sgd, Shp, Sll, Sos, Srd, Ssp, Std, Svc, Syp, Szl, Thb, Tjs, Tmt, Tnd, Top, Try, Ttd, Twd, Tzs, Uah, Ugx, Usd, Usn, Uss, Uyi, Uyu, Uzs, Vef, Vnd, Vuv, Wst, Xaf, Xag, Xau, Xba, Xbb, Xbc, Xbd, Xcd, Xdr, Xof, Xpd, Xpf, Xpt, Xsu, Xts, Xua, Xxx, Yer, Zar, Zmw, Zwl,
}
Expand description

ISO 4217 currency codes.

Enumeration of currency codes following ISO 4217 standard.

German: Waehrungscode

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.
§

Aed

UAE Dirham

§

Afn

Afghani

§

All

Lek

§

Amd

Armenian Dram

§

Ang

Netherlands Antillean Guilder

§

Aoa

Kwanza

§

Ars

Argentine Peso

§

Aud

Australian Dollar

§

Awg

Aruban Florin

§

Azn

Azerbaijanian Manat

§

Bam

Convertible Mark

§

Bbd

Barbados Dollar

§

Bdt

Taka

§

Bgn

Bulgarian Lev

§

Bhd

Bahraini Dinar

§

Bif

Burundi Franc

§

Bmd

Bermudian Dollar

§

Bnd

Brunei Dollar

§

Bob

Boliviano

§

Bov

Mvdol

§

Brl

Brazilian Real

§

Bsd

Bahamian Dollar

§

Btn

Ngultrum

§

Bwp

Pula

§

Byn

Belarusian Ruble

§

Byr

Belarusian Ruble (old)

§

Bzd

Belize Dollar

§

Cad

Canadian Dollar

§

Cdf

Congolese Franc

§

Che

WIR Euro

§

Chf

Swiss Franc

§

Chw

WIR Franc

§

Clf

Unidad de Fomento

§

Clp

Chilean Peso

§

Cny

Yuan Renminbi

§

Cop

Colombian Peso

§

Cou

Unidad de Valor Real

§

Crc

Costa Rican Colon

§

Cuc

Peso Convertible

§

Cup

Cuban Peso

§

Cve

Cape Verde Escudo

§

Czk

Czech Koruna

§

Djf

Djibouti Franc

§

Dkk

Danish Krone

§

Dop

Dominican Peso

§

Dzd

Algerian Dinar

§

Egp

Egyptian Pound

§

Ern

Nakfa

§

Etb

Ethiopian Birr

§

Eur

Euro

§

Fjd

Fiji Dollar

§

Fkp

Falkland Islands Pound

§

Gbp

Pound Sterling

§

Gel

Lari

§

Ghs

Ghana Cedi

§

Gip

Gibraltar Pound

§

Gmd

Dalasi

§

Gnf

Guinea Franc

§

Gtq

Quetzal

§

Gyd

Guyana Dollar

§

Hkd

Hong Kong Dollar

§

Hnl

Lempira

§

Hrk

Croatian Kuna

§

Htg

Gourde

§

Huf

Forint

§

Idr

Rupiah

§

Ils

New Israeli Sheqel

§

Inr

Indian Rupee

§

Iqd

Iraqi Dinar

§

Irr

Iranian Rial

§

Isk

Iceland Krona

§

Jmd

Jamaican Dollar

§

Jod

Jordanian Dinar

§

Jpy

Yen

§

Kes

Kenyan Shilling

§

Kgs

Som

§

Khr

Riel

§

Kmf

Comoro Franc

§

Kpw

North Korean Won

§

Krw

Won

§

Kwd

Kuwaiti Dinar

§

Kyd

Cayman Islands Dollar

§

Kzt

Tenge

§

Lak

Kip

§

Lbp

Lebanese Pound

§

Lkr

Sri Lanka Rupee

§

Lrd

Liberian Dollar

§

Lsl

Loti

§

Ltl

Lithuanian Litas

§

Lyd

Libyan Dinar

§

Mad

Moroccan Dirham

§

Mdl

Moldovan Leu

§

Mga

Malagasy Ariary

§

Mkd

Denar

§

Mmk

Kyat

§

Mnt

Tugrik

§

Mop

Pataca

§

Mro

Ouguiya

§

Mur

Mauritius Rupee

§

Mvr

Rufiyaa

§

Mwk

Kwacha

§

Mxn

Mexican Peso

§

Mxv

Mexican Unidad de Inversion (UDI)

§

Myr

Malaysian Ringgit

§

Mzn

Mozambique Metical

§

Nad

Namibia Dollar

§

Ngn

Naira

§

Nio

Cordoba Oro

§

Nok

Norwegian Krone

§

Npr

Nepalese Rupee

§

Nzd

New Zealand Dollar

§

Omr

Rial Omani

§

Pab

Balboa

§

Pen

Nuevo Sol

§

Pgk

Kina

§

Php

Philippine Peso

§

Pkr

Pakistan Rupee

§

Pln

Zloty

§

Pyg

Guarani

§

Qar

Qatari Rial

§

Ron

New Romanian Leu

§

Rsd

Serbian Dinar

§

Rub

Russian Ruble

§

Rur

Russian Ruble (old)

§

Rwf

Rwanda Franc

§

Sar

Saudi Riyal

§

Sbd

Solomon Islands Dollar

§

Scr

Seychelles Rupee

§

Sdg

Sudanese Pound

§

Sek

Swedish Krona

§

Sgd

Singapore Dollar

§

Shp

Saint Helena Pound

§

Sll

Leone

§

Sos

Somali Shilling

§

Srd

Surinam Dollar

§

Ssp

South Sudanese Pound

§

Std

Dobra

§

Svc

El Salvador Colon

§

Syp

Syrian Pound

§

Szl

Lilangeni

§

Thb

Baht

§

Tjs

Somoni

§

Tmt

Turkmenistan New Manat

§

Tnd

Tunisian Dinar

§

Top

Pa’anga

§

Try

Turkish Lira

§

Ttd

Trinidad and Tobago Dollar

§

Twd

New Taiwan Dollar

§

Tzs

Tanzanian Shilling

§

Uah

Hryvnia

§

Ugx

Uganda Shilling

§

Usd

US Dollar

§

Usn

US Dollar (Next day)

§

Uss

US Dollar (Same day)

§

Uyi

Uruguay Peso en Unidades Indexadas

§

Uyu

Peso Uruguayo

§

Uzs

Uzbekistan Sum

§

Vef

Bolivar

§

Vnd

Dong

§

Vuv

Vatu

§

Wst

Tala

§

Xaf

CFA Franc BEAC

§

Xag

Silver

§

Xau

Gold

§

Xba

Bond Markets Unit European Composite Unit (EURCO)

§

Xbb

Bond Markets Unit European Monetary Unit (E.M.U.-6)

§

Xbc

Bond Markets Unit European Unit of Account 9 (E.U.A.-9)

§

Xbd

Bond Markets Unit European Unit of Account 17 (E.U.A.-17)

§

Xcd

East Caribbean Dollar

§

Xdr

SDR (Special Drawing Right)

§

Xof

CFA Franc BCEAO

§

Xpd

Palladium

§

Xpf

CFP Franc

§

Xpt

Platinum

§

Xsu

Sucre

§

Xts

Codes specifically reserved for testing purposes

§

Xua

ADB Unit of Account

§

Xxx

No currency

§

Yer

Yemeni Rial

§

Zar

Rand

§

Zmw

Zambian Kwacha

§

Zwl

Zimbabwe Dollar

Trait Implementations§

Source§

impl Clone for Currency

Source§

fn clone(&self) -> Currency

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Currency

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Currency

Source§

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 Currency

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

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

impl PartialEq for Currency

Source§

fn eq(&self, other: &Currency) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Currency

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for Currency

Source§

impl Eq for Currency

Source§

impl StructuralPartialEq for Currency

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,