pub struct IbanBic {
pub iban: String,
pub bic: Option<String>,
}
Expand description
Separated IBAN and BIC strings from one of the account number fields
Fields§
§iban: String
International Bank Account Number
bic: Option<String>
Bank Identifier Code (ISO 9362)
Implementations§
source§impl IbanBic
impl IbanBic
sourcepub fn iban_only<T>(iban: T) -> Selfwhere
T: ToString,
pub fn iban_only<T>(iban: T) -> Selfwhere
T: ToString,
Construct and IbanBic with only an IBAN and no BIC
sourcepub fn iban_bic<T, U>(iban: T, bic: U) -> Self
pub fn iban_bic<T, U>(iban: T, bic: U) -> Self
Construct and IbanBic with both an IBAN and a BIC
sourcepub fn to_iban(&self) -> Result<Iban, SpaydError>
pub fn to_iban(&self) -> Result<Iban, SpaydError>
Parse the IBAN value into an Iban object from the iban_validate crate
Trait Implementations§
source§impl PartialEq for IbanBic
impl PartialEq for IbanBic
impl Eq for IbanBic
impl StructuralEq for IbanBic
impl StructuralPartialEq for IbanBic
Auto Trait Implementations§
impl RefUnwindSafe for IbanBic
impl Send for IbanBic
impl Sync for IbanBic
impl Unpin for IbanBic
impl UnwindSafe for IbanBic
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