[−][src]Trait eq_balances::BalanceChecker
Interface for balance checks
Required methods
fn can_change_balance(
_who: &AccountId,
_currency: &Currency,
_change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
_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
Implementations on Foreign Types
impl<Balance: Member + Debug, AccountId> BalanceChecker<Balance, AccountId> for ()
[src]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0,)
[src]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
impl<Balance: Member + Debug, AccountId, TupleElement0: BalanceChecker<Balance, AccountId>, TupleElement1: BalanceChecker<Balance, AccountId>> BalanceChecker<Balance, AccountId> for (TupleElement0, TupleElement1)
[src]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
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]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
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]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
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]
fn can_change_balance(
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>
[src]
who: &AccountId,
currency: &Currency,
change: &SignedBalance<Balance>,
reason: Option<WithdrawReasons>
) -> Result<bool, DispatchError>