pub struct DummyWhitelist<Address: AsRef<[u8]> + Zero + Default + PartialEq> { /* private fields */ }
Trait Implementations§
Source§impl<Address> AccessControlRegistryAdminnedWithManager for DummyWhitelist<Address>
impl<Address> AccessControlRegistryAdminnedWithManager for DummyWhitelist<Address>
type Address = Address
Source§fn admin_role_description(&self) -> String
fn admin_role_description(&self) -> String
Admin role description
Source§fn admin_role_description_hash(&self) -> Bytes32
fn admin_role_description_hash(&self) -> Bytes32
Admin role description hash
Source§fn admin_role(&self) -> Bytes32
fn admin_role(&self) -> Bytes32
Admin role
Source§impl<Address> Whitelist for DummyWhitelist<Address>
impl<Address> Whitelist for DummyWhitelist<Address>
Source§fn user_is_whitelisted(
&self,
_service_id: &Bytes32,
_user: &Self::Address,
) -> bool
fn user_is_whitelisted( &self, _service_id: &Bytes32, _user: &Self::Address, ) -> bool
Returns if the user is whitelised to use the service Read more
Source§fn extend_whitelist_expiration(
&mut self,
_service_id: &Bytes32,
_user: &Self::Address,
_expiration_timestamp: u64,
)
fn extend_whitelist_expiration( &mut self, _service_id: &Bytes32, _user: &Self::Address, _expiration_timestamp: u64, )
Extends the expiration of the temporary whitelist of the user
for the service Read more
Source§fn set_whitelist_expiration(
&mut self,
_service_id: &Bytes32,
_user: &Self::Address,
_expiration_timestamp: u64,
)
fn set_whitelist_expiration( &mut self, _service_id: &Bytes32, _user: &Self::Address, _expiration_timestamp: u64, )
Sets the expiration of the temporary whitelist of
user
to be
able to use the service with serviceId
if the sender has the
whitelist expiration setter role Read moreSource§impl<Address> WhitelistRoles for DummyWhitelist<Address>
impl<Address> WhitelistRoles for DummyWhitelist<Address>
Source§impl<Address> WhitelistRolesWithManager for DummyWhitelist<Address>
impl<Address> WhitelistRolesWithManager for DummyWhitelist<Address>
Source§fn 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 Read more
Source§fn 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 Read more
Source§fn 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 Read more
fn whitelist_expiration_extender_role(&self) -> Bytes32
fn whitelist_expiration_setter_role(&self) -> Bytes32
fn indefinite_whitelister_role(&self) -> Bytes32
Source§impl<Address> WhitelistWithManager for DummyWhitelist<Address>
impl<Address> WhitelistWithManager for DummyWhitelist<Address>
Source§fn extend_whitelist_expiration(
&mut self,
_service_id: &Bytes32,
_user: &<Self as Whitelist>::Address,
_expiration_timestamp: u64,
)
fn extend_whitelist_expiration( &mut self, _service_id: &Bytes32, _user: &<Self as Whitelist>::Address, _expiration_timestamp: u64, )
Extends the expiration of the temporary whitelist of
user
to
be able to use the service with service_id
if the sender has the
whitelist expiration extender role Read moreSource§fn set_whitelist_expiration(
&mut self,
_service_id: &Bytes32,
_user: &<Self as Whitelist>::Address,
_expiration_timestamp: u64,
)
fn set_whitelist_expiration( &mut self, _service_id: &Bytes32, _user: &<Self as Whitelist>::Address, _expiration_timestamp: u64, )
Sets the expiration of the temporary whitelist of
user
to be
able to use the service with service_id
if the sender has the
whitelist expiration setter role Read moreAuto Trait Implementations§
impl<Address> Freeze for DummyWhitelist<Address>where
Address: Freeze,
impl<Address> RefUnwindSafe for DummyWhitelist<Address>where
Address: RefUnwindSafe,
impl<Address> Send for DummyWhitelist<Address>where
Address: Send,
impl<Address> Sync for DummyWhitelist<Address>where
Address: Sync,
impl<Address> Unpin for DummyWhitelist<Address>where
Address: Unpin,
impl<Address> UnwindSafe for DummyWhitelist<Address>where
Address: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more