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§
Sourcefn has_whitelist_expiration_extender_role_or_is_manager(
&self,
account: &Self::Address,
) -> bool
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
Sourcefn has_indefinite_whitelister_role_or_is_manager(
&self,
account: &Self::Address,
) -> bool
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
Sourcefn has_whitelist_expiration_setter_role_or_is_manager(
&self,
account: &Self::Address,
) -> bool
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§
fn whitelist_expiration_extender_role(&self) -> Bytes32
fn whitelist_expiration_setter_role(&self) -> Bytes32
fn indefinite_whitelister_role(&self) -> Bytes32
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.