iban_validate
This is a small crate that is able to validate an IBAN account number.
Usage
The crate can be found on crates.io. To use this crate, just add it as an dependency:
[dependencies]
iban_validate = "1.0.3"
Functionality
This crate provides an easy way to validate an IBAN (International Bank Account Number). To do so, you can use the
function parse()
. If you want to check whether the address has a valid BBAN (Basic Bank Account Number), you can
use validate_bban()
. It also contains some helper methods to make handling an IBAN easier.
Example
The following example does a full validation of the IBAN and BBAN format.
use Iban;
use BbanResult;
let account = "DE44500105175407324931".?;
assert_eq!;
assert_eq!;
assert_eq!;
assert_eq!;
Documentation
The full documentation is available at docs.rs.
Contributing
If you experience issues with this crate or want to help, please look here.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.