bank-barcode
Generate Finnish virtual bank barcodes (pankkiviivakoodi) in Rust.
This crate produces the digit string for both version 4 and version 5 of the
Finnish virtual bank barcode as defined in the
Finanssiala specification. Bank barcodes may only be printed for IBAN
accounts in the FI country.
Usage
Add the crate to your Cargo.toml:
[]
= "0.2"
Then build a barcode through BarcodeBuilder and format it via its
Display implementation:
let barcode = builder
.version
.account_number
.reference
.calendar_due_date
.euros
.cents
.build
.expect;
println!;
A runnable end-to-end example lives in examples/basic.rs
and can be invoked with:
Minimum supported Rust version
bank-barcode builds on Rust 1.88 and later.
License
Licensed under the MIT License.