Skip to main content

Currency

Enum Currency 

Source
pub enum Currency {
Show 161 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, BYR, BZD, CAD, CDF, CHF, CLF, CLP, CNY, COP, COU, CRC, CUC, CUP, CVE, CZK, DJF, DKK, DOP, DZD, EEK, 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, 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, STD, SYP, SZL, THB, TJS, TMT, TND, TOP, TRY, TTD, TWD, TZS, UAH, UGX, USD, UYU, UZS, VEF, VND, VUV, WST, XAF, XCD, XOF, XPF, YER, ZAR, ZMK, ZWL,
}
Expand description

Monetary currencies. ISO 4217 standard including 3-character currency code.

Variants§

§

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 (customarily known as Bermuda dollar).

§

BND

Brunei dollar.

§

BOB

Boliviano.

§

BOV

Bolivian Mvdol (funds code).

§

BRL

Brazilian real.

§

BSD

Bahamian dollar.

§

BTN

Bhutanese ngultrum.

§

BWP

Botswana pula.

§

BYR

Belarusian ruble.

§

BZD

Belize dollar.

§

CAD

Canadian dollar.

§

CDF

Congolese franc.

§

CHF

Swiss franc.

§

CLF

Unidad de Fomento (funds code), Chile.

§

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.

§

EEK

Estonian kroon.

§

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

§

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 Lanka 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

Myanma kyat.

§

MNT

Mongolian tugrik.

§

MOP

Macanese pataca.

§

MRO

Mauritanian ouguiya.

§

MUR

Mauritian rupee.

§

MVR

Maldivian rufiyaa.

§

MWK

Malawian kwacha.

§

MXN

Mexican peso.

§

MYR

Malaysian ringgit.

§

MZN

Mozambican metical.

§

NAD

Namibian dollar.

§

NGN

Nigerian naira.

§

NIO

Cordoba oro.

§

NOK

Norwegian krone.

§

NPR

Nepalese rupee.

§

NZD

New Zealand dollar.

§

OMR

Omani rial.

§

PAB

Panamanian balboa.

§

PEN

Peruvian nuevo sol.

§

PGK

Papua New Guinean kina.

§

PHP

Philippine peso.

§

PKR

Pakistani rupee.

§

PLN

Polish zloty.

§

PYG

Paraguayan guaraní.

§

QAR

Qatari rial.

§

RON

Romanian new leu.

§

RSD

Serbian dinar.

§

RUB

Russian rouble.

§

RWF

Rwandan franc.

§

SAR

Saudi riyal.

§

SBD

Solomon Islands dollar.

§

SCR

Seychelles rupee.

§

SDG

Sudanese pound.

§

SEK

Swedish krona/kronor.

§

SGD

Singapore dollar.

§

SHP

Saint Helena pound.

§

SLL

Sierra Leonean leone.

§

SOS

Somali shilling.

§

SRD

Surinamese dollar.

§

STD

São Tomé and Príncipe dobra.

§

SYP

Syrian pound.

§

SZL

Lilangeni.

§

THB

Thai baht.

§

TJS

Tajikistani somoni.

§

TMT

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

§

UYU

Uruguayan peso.

§

UZS

Uzbekistan som.

§

VEF

Venezuelan bolívar fuerte.

§

VND

Vietnamese Dong.

§

VUV

Vanuatu vatu.

§

WST

Samoan tala.

§

XAF

CFA franc BEAC.

§

XCD

East Caribbean dollar.

§

XOF

CFA Franc BCEAO.

§

XPF

CFP franc.

§

YER

Yemeni rial.

§

ZAR

South African rand.

§

ZMK

Zambian kwacha.

§

ZWL

Zimbabwe dollar.

Implementations§

Source§

impl Currency

Source

pub fn uri(&self) -> &'static str

Trait Implementations§

Source§

impl Clone for Currency

Source§

fn clone(&self) -> Currency

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.