Trait AccountCheck

Source
pub trait AccountCheck<AccountId> {
    // Required method
    fn allowed_to_stake(account: &AccountId) -> bool;
}
Expand description

Used to check whether an account is allowed to participate in dApp staking or not.

Required Methods§

Source

fn allowed_to_stake(account: &AccountId) -> bool

true if the account is allowed to stake, false otherwise.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<AccountId> AccountCheck<AccountId> for ()

Implementors§