Enum BicError
pub enum BicError {
InvalidLength,
InvalidBankCode,
InvalidCountryCode,
InvalidLocationCode,
InvalidBranchCode,
}Expand description
Errors returned while constructing BIC values.
Variants§
InvalidLength
BIC values must be exactly 8 or 11 characters.
InvalidBankCode
The bank code must be four letters.
InvalidCountryCode
The country code must be two letters.
InvalidLocationCode
The location code must be two alphanumeric characters.
InvalidBranchCode
The branch code must be three alphanumeric characters when present.
Trait Implementations§
§impl Error for BicError
impl Error for BicError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for BicError
impl Eq for BicError
impl StructuralPartialEq for BicError
Auto Trait Implementations§
impl Freeze for BicError
impl RefUnwindSafe for BicError
impl Send for BicError
impl Sync for BicError
impl Unpin for BicError
impl UnsafeUnpin for BicError
impl UnwindSafe for BicError
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