use-bic 0.1.0

Bank Identifier Code primitives for RustUse finance crates
Documentation
  • Coverage
  • 100%
    16 out of 16 items documented1 out of 10 items with examples
  • Size
  • Source code size: 9.53 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 443.41 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-finance
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-bic

Bank Identifier Code primitives for RustUse finance crates.

use-bic validates SWIFT/BIC-style bank identifier codes with 8-character and 11-character forms. It normalizes input by trimming whitespace and uppercasing letters.

Example

use use_bic::Bic;

let bic = Bic::new("deutdeff500")?;

assert_eq!(bic.as_str(), "DEUTDEFF500");
assert_eq!(bic.bank_code(), "DEUT");
assert_eq!(bic.country_code(), "DE");
assert_eq!(bic.location_code(), "FF");
assert_eq!(bic.branch_code(), Some("500"));
# Ok::<(), Box<dyn std::error::Error>>(())

Scope

Use this crate for offline BIC shape validation and local code handling. It does not implement SWIFT network messaging, MT/MX parsing, ISO 20022 messages, live bank-directory lookup, payment transmission, or bank connectivity.

License

Licensed under either MIT or Apache-2.0.