Enum Currency

Source
pub enum Currency {
Show 182 variants UnknowCurrency, Aed, Afn, All, Amd, Ang, Aoa, Ars, Aud, Awg, Azn, Bam, Bbd, Bdt, Bgn, Bhd, Bif, Bmd, Bnd, Bob, Bov, Brl, Bsd, Btn, Bwp, 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, Lvl, 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, 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, Xts, Xxx, Yer, Zar, Zmk, Zmw, Btc, Xus,
}
Expand description

Indicates the associated currency for an amount of money. Values correspond to ISO 4217.

Variants§

§

UnknowCurrency

Unknown currency

§

Aed

United Arab Emirates dirham

§

Afn

Afghan afghani

§

All

Albanian lek

§

Amd

Armenian dram

§

Ang

Netherlands Antillean guilder

§

Aoa

Angolan kwanza

§

Ars

Argentine peso

§

Aud

Australian dollar

§

Awg

Aruban florin

§

Azn

Azerbaijani manat

§

Bam

Bosnia and Herzegovina convertible mark

§

Bbd

Barbados dollar

§

Bdt

Bangladeshi taka

§

Bgn

Bulgarian lev

§

Bhd

Bahraini dinar

§

Bif

Burundian franc

§

Bmd

Bermudian dollar

§

Bnd

Brunei dollar

§

Bob

Boliviano

§

Bov

Bolivian Mvdol

§

Brl

Brazilian real

§

Bsd

Bahamian dollar

§

Btn

Bhutanese ngultrum

§

Bwp

Botswana pula

§

Byr

Belarusian ruble

§

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

Chinese yuan

§

Cop

Colombian peso

§

Cou

Unidad de Valor Real

§

Crc

Costa Rican colon

§

Cuc

Cuban convertible peso

§

Cup

Cuban peso

§

Cve

Cape Verde escudo

§

Czk

Czech koruna

§

Djf

Djiboutian franc

§

Dkk

Danish krone

§

Dop

Dominican peso

§

Dzd

Algerian dinar

§

Egp

Egyptian pound

§

Ern

Eritrean nakfa

§

Etb

Ethiopian birr

§

Eur

Euro

§

Fjd

Fiji dollar

§

Fkp

Falkland Islands pound

§

Gbp

Pound sterling

§

Gel

Georgian lari

§

Ghs

Ghanaian cedi

§

Gip

Gibraltar pound

§

Gmd

Gambian dalasi

§

Gnf

Guinean franc

§

Gtq

Guatemalan quetzal

§

Gyd

Guyanese dollar

§

Hkd

Hong Kong dollar

§

Hnl

Honduran lempira

§

Hrk

Croatian kuna

§

Htg

Haitian gourde

§

Huf

Hungarian forint

§

Idr

Indonesian rupiah

§

Ils

Israeli new shekel

§

Inr

Indian rupee

§

Iqd

Iraqi dinar

§

Irr

Iranian rial

§

Isk

Icelandic króna

§

Jmd

Jamaican dollar

§

Jod

Jordanian dinar

§

Jpy

Japanese yen

§

Kes

Kenyan shilling

§

Kgs

Kyrgyzstani som

§

Khr

Cambodian riel

§

Kmf

Comoro franc

§

Kpw

North Korean won

§

Krw

South Korean won

§

Kwd

Kuwaiti dinar

§

Kyd

Cayman Islands dollar

§

Kzt

Kazakhstani tenge

§

Lak

Lao kip

§

Lbp

Lebanese pound

§

Lkr

Sri Lankan rupee

§

Lrd

Liberian dollar

§

Lsl

Lesotho loti

§

Ltl

Lithuanian litas

§

Lvl

Latvian lats

§

Lyd

Libyan dinar

§

Mad

Moroccan dirham

§

Mdl

Moldovan leu

§

Mga

Malagasy ariary

§

Mkd

Macedonian denar

§

Mmk

Myanmar kyat

§

Mnt

Mongolian tögrög

§

Mop

Macanese pataca

§

Mro

Mauritanian ouguiya

§

Mur

Mauritian rupee

§

Mvr

Maldivian rufiyaa

§

Mwk

Malawian kwacha

§

Mxn

Mexican peso

§

Mxv

Mexican Unidad de Inversion

§

Myr

Malaysian ringgit

§

Mzn

Mozambican metical

§

Nad

Namibian dollar

§

Ngn

Nigerian naira

§

Nio

Nicaraguan córdoba

§

Nok

Norwegian krone

§

Npr

Nepalese rupee

§

Nzd

New Zealand dollar

§

Omr

Omani rial

§

Pab

Panamanian balboa

§

Pen

Peruvian sol

§

Pgk

Papua New Guinean kina

§

Php

Philippine peso

§

Pkr

Pakistani rupee

§

Pln

Polish złoty

§

Pyg

Paraguayan guaraní

§

Qar

Qatari riyal

§

Ron

Romanian leu

§

Rsd

Serbian dinar

§

Rub

Russian ruble

§

Rwf

Rwandan 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

Sierra Leonean leone

§

Sos

Somali shilling

§

Srd

Surinamese dollar

§

Ssp

South Sudanese pound

§

Std

São Tomé and Príncipe dobra

§

Svc

Salvadoran colón

§

Syp

Syrian pound

§

Szl

Swazi lilangeni

§

Thb

Thai baht

§

Tjs

Tajikistani somoni

§

Tmt

Turkmenistan manat

§

Tnd

Tunisian dinar

§

Top

Tongan paʻanga

§

Try

Turkish lira

§

Ttd

Trinidad and Tobago dollar

§

Twd

New Taiwan dollar

§

Tzs

Tanzanian shilling

§

Uah

Ukrainian hryvnia

§

Ugx

Ugandan shilling

§

Usd

United States dollar

§

Usn

United States dollar (next day)

§

Uss

United States dollar (same day)

§

Uyi

Uruguay Peso en Unidedades Indexadas

§

Uyu

Uruguyan peso

§

Uzs

Uzbekistan som

§

Vef

Venezuelan bolívar soberano

§

Vnd

Vietnamese đồng

§

Vuv

Vanuatu vatu

§

Wst

Samoan tala

§

Xaf

CFA franc BEAC

§

Xag

Silver

§

Xau

Gold

§

Xba

European Composite Unit

§

Xbb

European Monetary Unit

§

Xbc

European Unit of Account 9

§

Xbd

European Unit of Account 17

§

Xcd

East Caribbean dollar

§

Xdr

Special drawing rights (International Monetary Fund)

§

Xof

CFA franc BCEAO

§

Xpd

Palladium

§

Xpf

CFP franc

§

Xpt

Platinum

§

Xts

Code reserved for testing

§

Xxx

No currency

§

Yer

Yemeni rial

§

Zar

South African rand

§

Zmk

Zambian kwacha

§

Zmw

Zambian kwacha

§

Btc

Bitcoin

§

Xus

USD Coin

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 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 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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,