[][src]Enum brb_dt_at2::bank::ValidationError

pub enum ValidationError<A: Ord + Hash> {
    NotInitiatedByAccountOwner {
        source: A,
        owner: A,
    },
    FromAccountDoesNotExist(A),
    ToAccountDoesNotExist(A),
    InsufficientFunds {
        balance: Money,
        transfer_amount: Money,
    },
    MissingDependentOps(BTreeSet<Transfer<A>>),
    OwnerAlreadyHasAnAccount,
}

Variants

NotInitiatedByAccountOwner

Fields of NotInitiatedByAccountOwner

source: Aowner: A
FromAccountDoesNotExist(A)
ToAccountDoesNotExist(A)
InsufficientFunds

Fields of InsufficientFunds

balance: Moneytransfer_amount: Money
MissingDependentOps(BTreeSet<Transfer<A>>)
OwnerAlreadyHasAnAccount

Trait Implementations

impl<A: Debug + Ord + Hash> Debug for ValidationError<A>[src]

impl<A: Eq + Ord + Hash> Eq for ValidationError<A>[src]

impl<A: PartialEq + Ord + Hash> PartialEq<ValidationError<A>> for ValidationError<A>[src]

impl<A: Ord + Hash> StructuralEq for ValidationError<A>[src]

impl<A: Ord + Hash> StructuralPartialEq for ValidationError<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for ValidationError<A> where
    A: RefUnwindSafe
[src]

impl<A> Send for ValidationError<A> where
    A: Send
[src]

impl<A> Sync for ValidationError<A> where
    A: Sync
[src]

impl<A> Unpin for ValidationError<A> where
    A: Unpin
[src]

impl<A> UnwindSafe for ValidationError<A> where
    A: RefUnwindSafe + UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,