Expand description
This crate provides functionality for storing and exchanging various ISO-4217 currency codes using the European Central Bank.
Features
num-traitsadds support for the num-traits crate.serdeadds support for the serde crate.
Re-exports
rust_decimal::Decimal, because it is required to createMoney.
Structs
Decimalrepresents a 128 bit representation of a fixed-precision decimal number. The finite set of values of typeDecimalare of the form m / 10e, where m is an integer such that -296 < m < 296, and e is an integer between 0 and 28 inclusive.- A collection of rates of exchange between currencies such that some
amountofMoneydivided by itsCurrencywill yieldCurrency::Eur, and anamountofCurrency::Eurmultiplied by anyCurrency’s exchange rate will yield thatCurrency. - An
amountofCurrency.
Enums
- ISO-4217 currency codes which are reported by the European Central Bank for exchange.
- An
Errorfor the crate.
Traits
Type Aliases
- A
Resultfor the crate.