#[non_exhaustive]pub enum InvalidReason {
Sepa(Invalid),
NotPositive,
TooLarge,
Precision,
NoIban,
NoName,
}Expand description
Why a field of a Transfer is invalid.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sepa(Invalid)
A text, reference, IBAN or BIC that breaks the SEPA rules.
NotPositive
The amount is zero or negative.
TooLarge
The amount exceeds 999 999 999.99.
Precision
The amount has more than two decimals.
NoIban
The debtor account has no IBAN (addressed nationally only).
NoName
No debtor name given and none in the UPD.
Trait Implementations§
Source§impl Clone for InvalidReason
impl Clone for InvalidReason
impl Copy for InvalidReason
Source§impl Debug for InvalidReason
impl Debug for InvalidReason
Source§impl Display for InvalidReason
impl Display for InvalidReason
impl Eq for InvalidReason
Source§impl From<Invalid> for InvalidReason
impl From<Invalid> for InvalidReason
Source§impl PartialEq for InvalidReason
impl PartialEq for InvalidReason
impl StructuralPartialEq for InvalidReason
Auto Trait Implementations§
impl Forget for InvalidReason
impl Freeze for InvalidReason
impl Move for InvalidReason
impl RefUnwindSafe for InvalidReason
impl Send for InvalidReason
impl Sync for InvalidReason
impl Unpin for InvalidReason
impl UnsafeUnpin for InvalidReason
impl UnwindSafe for InvalidReason
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