pub struct Bic(/* private fields */);Available on non-crate feature
tooling only.Expand description
BIC (Bank Identifier Code).
Implementations§
Source§impl Bic
impl Bic
Sourcepub fn parse(s: &str) -> Result<Bic, Invalid>
pub fn parse(s: &str) -> Result<Bic, Invalid>
Check a BIC: spaces removed, upper-cased, 8 or 11 characters of the
form [A-Z0-9]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})? (Anlage 3
2.3.1.1 BICFIDec2014Identifier).
use fints_client::Bic;
assert_eq!(Bic::parse("cobadeffxxx").unwrap().as_str(), "COBADEFFXXX");
assert!(Bic::parse("COBADEF").is_err());Trait Implementations§
Source§impl<'de> Deserialize<'de> for Bic
impl<'de> Deserialize<'de> for Bic
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 Bic
Source§impl Ord for Bic
impl Ord for Bic
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 Bic
impl PartialOrd for Bic
impl StructuralPartialEq for Bic
Auto Trait Implementations§
impl Forget for Bic
impl Freeze for Bic
impl Move for Bic
impl RefUnwindSafe for Bic
impl Send for Bic
impl Sync for Bic
impl Unpin for Bic
impl UnsafeUnpin for Bic
impl UnwindSafe for Bic
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