Skip to content

JohnPeel/iban

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBAN

Crates.io Docs Coverage Status Licensed

IBAN parsing library.

Usage

Add library as a dependency to Cargo.toml.

...
[dependencies]
iban = "1"
...

Construct a Iban type by using str::parse, FromStr::from_str, or Iban::parse.

use iban::Iban;
let iban: Iban = "AA110011123Z5678"
    .parse()
    .unwrap_or_else(|err| {
        // This example panics, but you should handle the error cases properly.
        panic!("invalid iban: {err}");
    });

let country_code: &str = iban.country_code();
let bban: iban::Bban = iban.bban();

let bank_identifier: Option<&str> = bban.bank_identifier();

References

About

IBAN parsing library

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE_MIT

Stars

Watchers

Forks

Packages

No packages published

Languages