pub enum BankAccountError {
EmptyAccountNumber,
AccountNumberTooLong,
InvalidAccountNumberCharacter,
EmptyAccountHolderName,
}Expand description
Errors returned by bank account primitives.
Variants§
EmptyAccountNumber
The account number was empty after trimming whitespace.
AccountNumberTooLong
The account number was longer than 34 characters.
InvalidAccountNumberCharacter
The account number contained a non-alphanumeric character.
EmptyAccountHolderName
The account holder name was empty after trimming whitespace.
Trait Implementations§
Source§impl Clone for BankAccountError
impl Clone for BankAccountError
Source§fn clone(&self) -> BankAccountError
fn clone(&self) -> BankAccountError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BankAccountError
impl Debug for BankAccountError
Source§impl Display for BankAccountError
impl Display for BankAccountError
Source§impl Error for BankAccountError
impl Error for BankAccountError
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()
Source§impl PartialEq for BankAccountError
impl PartialEq for BankAccountError
impl Copy for BankAccountError
impl Eq for BankAccountError
impl StructuralPartialEq for BankAccountError
Auto Trait Implementations§
impl Freeze for BankAccountError
impl RefUnwindSafe for BankAccountError
impl Send for BankAccountError
impl Sync for BankAccountError
impl Unpin for BankAccountError
impl UnsafeUnpin for BankAccountError
impl UnwindSafe for BankAccountError
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