Package codes-iso-4217
This package contains an implementation of the ISO 4217 Currency Codes specification.
For notes on the design of the API, see the repository README.
Example
use ;
let code = BZD;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Features
By default only the serde feature is enabled, the [CurrencyCode::alpha_code] and
[CurrencyCode::numeric_code] methods cannot be excluded.
serde- Enables serialization of the [CurrencyCode] type.currency_name- Adds the [CurrencyCode::currency_name] method.country_name- Adds the [CurrencyCode::country_name] method.monetary_units- Adds the [CurrencyCode::monetary_units] method.is_fund- Adds the [CurrencyCode::is_fund] method.historical_codes- Adds the [CurrencyCode::is_historical] and [CurrencyCode::withdrawal_date] methods.
Changes
Version 0.1.4
- Added
ALL_CODESconstant.
Version 0.1.3
- Clean-up implementation based on newer
codes-common - Using new
Codetrait and macro-created implementation.
Version 0.1.2
- Added more documentation.
- Removed the implementation of the
Codetrait. - Changed error type to enum from struct.
Version 0.1.1
- Completed the build-time work to generate the
CurrencyCodetype and methods. Took heavy inspiration from penny but wanted a different resulting style.
Version 0.1.0
- Initial place-holder release.
TODO
- Create a scheduled build that retrieves updated files from the ISO site.