Skip to main content

uk_bank_details_validator/
lib.rs

1#![doc = include_str!("../README.md")]
2#![cfg_attr(not(feature = "std"), no_std)]
3
4#[cfg(test)]
5#[path = "../build/parse.rs"]
6#[allow(dead_code)]
7mod build_parse;
8
9mod account_number;
10mod check;
11mod details;
12mod error;
13mod exceptions;
14mod sort_code;
15mod table;
16mod validation;
17
18pub use account_number::{AccountNumber, AccountNumberError};
19pub use details::BankDetails;
20pub use error::ParseError;
21pub use sort_code::{SortCode, SortCodeError};
22pub use validation::Validation;
23
24/// The Vocalink specification version the bundled tables come from.
25///
26/// *Note*
27/// Not affiliated with, endorsed by or supported by Vocalink, Mastercard or
28/// Pay.UK. "Vocalink" and "Bacs" are trademarks of their respective owners.
29/// The weight and substitution tables are published by Vocalink.
30pub const VOCALINK_DATA_VERSION: &str = "9.10";