pub struct Iban {
pub raw_iban: String,
pub machine_iban: String,
pub country_code: String,
pub check_digits: String,
pub check_digits_int: i8,
pub bban: String,
pub is_valid: bool,
}Fields§
§raw_iban: StringIBAN as provided
machine_iban: StringSanitised IBAN, without whitespaces and all uppercased. Will be filled even if the IBAN is invalid.
country_code: StringThe country code of the IBAN, such as GB or NL.
check_digits: StringCheck digits as provided, which are the 2 digits that follow the country code, such as 82.
check_digits_int: i8Same as check_digits, but as an int.
bban: StringBBAN is a substring of the IBAN, being the country-specific alphanumeric characters that follow after the country code and check digits.
is_valid: boolWhether this is a valid iban or not.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Iban
impl RefUnwindSafe for Iban
impl Send for Iban
impl Sync for Iban
impl Unpin for Iban
impl UnwindSafe for Iban
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more