IBAN
IBAN parsing library.
Usage
Add library as a dependency to Cargo.toml.
...
[]
= "0.1"
...
Construct a Iban type by using str::parse, FromStr::from_str, or Iban::parse.
use Iban;
let iban: Iban = "AA110011123Z5678"
.parse
.unwrap_or_else;
let country_code: &str = iban.country_code;
let bban: Bban = iban.bban;
let bank_identifier: = bban.bank_identifier;
References
- ISO 13616: https://www.iso13616.org/
- IBAN Registry (pdf): https://www.swift.com/node/9606
- IBAN Registry (txt): https://www.swift.com/node/11971
- php-iban: https://github.com/globalcitizen/php-iban