pub struct Account { /* private fields */ }Expand description
A validated bank account identifier (Kontoverbindung International).
Both IBAN and BIC are required and non-empty. This is enforced at
construction time — you cannot create an Account with a missing BIC.
All typed business operations on Dialog<Open> take &Account,
making it a compile error to pass raw strings that might be empty.
use fints::protocol::Account;
// This works:
let acc = Account::new("DE89370400440532013000", "COBADEFFXXX").unwrap();
// This fails at construction time:
let bad = Account::new("DE89370400440532013000", "");
assert!(bad.is_err());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnsafeUnpin for Account
impl UnwindSafe for Account
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