[][src]Trait eq_balances::BalanceChecker

pub trait BalanceChecker<Balance, AccountId> where
    Balance: Member + Debug
{ fn can_change_balance(
        _who: &AccountId,
        _currency: &Currency,
        _change: &SignedBalance<Balance>,
        reason: Option<WithdrawReasons>
    ) -> Result<bool, DispatchError>; }

Interface for balance checks

Required methods

fn can_change_balance(
    _who: &AccountId,
    _currency: &Currency,
    _change: &SignedBalance<Balance>,
    reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>

Checks whether a specific operation can be performed on user's balance

Loading content...

Implementations on Foreign Types

impl<Balance: Member + Debug, AccountId> BalanceChecker<Balance, AccountId> for ()[src]

impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0,)[src]

impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>, TupleElement1: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0, TupleElement1)[src]

impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>, TupleElement1: BalanceChecker<Balance, AccountId>, TupleElement2: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0, TupleElement1, TupleElement2)[src]

impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>, TupleElement1: BalanceChecker<Balance, AccountId>, TupleElement2: BalanceChecker<Balance, AccountId>, TupleElement3: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3)[src]

impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>, TupleElement1: BalanceChecker<Balance, AccountId>, TupleElement2: BalanceChecker<Balance, AccountId>, TupleElement3: BalanceChecker<Balance, AccountId>, TupleElement4: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0, TupleElement1, TupleElement2, TupleElement3, TupleElement4)[src]

Loading content...

Implementors

Loading content...