pub struct Iban(/* private fields */);Available on non-crate feature
tooling only.Expand description
IBAN (International Bank Account Number).
Implementations§
Source§impl Iban
impl Iban
Sourcepub fn parse(s: &str) -> Result<Iban, Invalid>
pub fn parse(s: &str) -> Result<Iban, Invalid>
Check an IBAN: spaces removed, upper-cased, two letters, two check
digits, 15..=34 alphanumerics in all, mod 97 = 1 (ISO 13616; Anlage 3
2.3.1.1 IBAN2007Identifier).
use fints_client::Iban;
assert_eq!(Iban::parse("de89 3704 0044 0532 0130 00").unwrap().as_str(),
"DE89370400440532013000");
assert!(Iban::parse("DE88370400440532013000").is_err());Trait Implementations§
Source§impl<'de> Deserialize<'de> for Iban
impl<'de> Deserialize<'de> for Iban
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Iban
Source§impl Ord for Iban
impl Ord for Iban
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Iban
impl PartialOrd for Iban
impl StructuralPartialEq for Iban
Auto Trait Implementations§
impl Forget for Iban
impl Freeze for Iban
impl Move for Iban
impl RefUnwindSafe for Iban
impl Send for Iban
impl Sync for Iban
impl Unpin for Iban
impl UnsafeUnpin 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