Trait WhitelistRolesWithManager

Source
pub trait WhitelistRolesWithManager: WhitelistRoles + AccessControlRegistryAdminnedWithManager {
    // Required methods
    fn has_whitelist_expiration_extender_role_or_is_manager(
        &self,
        account: &Self::Address,
    ) -> bool;
    fn has_indefinite_whitelister_role_or_is_manager(
        &self,
        account: &Self::Address,
    ) -> bool;
    fn has_whitelist_expiration_setter_role_or_is_manager(
        &self,
        account: &Self::Address,
    ) -> bool;

    // Provided methods
    fn whitelist_expiration_extender_role(&self) -> Bytes32 { ... }
    fn whitelist_expiration_setter_role(&self) -> Bytes32 { ... }
    fn indefinite_whitelister_role(&self) -> Bytes32 { ... }
}

Required Methods§

Source

fn has_whitelist_expiration_extender_role_or_is_manager( &self, account: &Self::Address, ) -> bool

Returns if the account has the whitelist expiration extender role or is the manager

§Arguments
  • account Account address
Source

fn has_indefinite_whitelister_role_or_is_manager( &self, account: &Self::Address, ) -> bool

Returns if the account has the indefinite whitelister role or is the manager

§Arguments
  • account Account address
Source

fn has_whitelist_expiration_setter_role_or_is_manager( &self, account: &Self::Address, ) -> bool

Returns if the account has the whitelist expriation setter role or is the manager

§Arguments
  • account Account address

Provided Methods§

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.

Implementors§

Source§

impl<Address> WhitelistRolesWithManager for DummyWhitelist<Address>
where Address: AsRef<[u8]> + Default + PartialEq + Zero,