Struct DummyWhitelist

Source
pub struct DummyWhitelist<Address: AsRef<[u8]> + Zero + Default + PartialEq> { /* private fields */ }

Trait Implementations§

Source§

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

Source§

type Address = Address

Source§

fn manager(&self) -> &Self::Address

Get the manager of this registry
Source§

fn admin_role_description(&self) -> String

Admin role description
Source§

fn admin_role_description_hash(&self) -> Bytes32

Admin role description hash
Source§

fn admin_role(&self) -> Bytes32

Admin role
Source§

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

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

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

Source§

type Address = Address

The address type for the chain
Source§

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, )

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, )

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 more
Source§

fn set_indefinite_whitelist_status( &mut self, _service_id: &Bytes32, _user: &Self::Address, _status: bool, ) -> U256

Sets the indefinite whitelist status of user to be able to use the service with serviceId if the sender has the indefinite whitelister role Read more
Source§

fn revoke_indefinite_whitelist_status( &mut self, _service_id: &Bytes32, _user: &Self::Address, _setter: &Self::Address, ) -> (bool, U256)

Revokes the indefinite whitelist status granted to the user for the service by a specific account Read more
Source§

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

Source§

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

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 Read more
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 Read more
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 Read more
Source§

fn whitelist_expiration_extender_role(&self) -> Bytes32

Source§

fn whitelist_expiration_setter_role(&self) -> Bytes32

Source§

fn indefinite_whitelister_role(&self) -> Bytes32

Source§

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

Source§

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 more
Source§

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 more
Source§

fn set_indefinite_whitelist_status( &mut self, _service_id: &Bytes32, _user: &<Self as Whitelist>::Address, _status: bool, ) -> U256

Sets the indefinite whitelist status of user to be able to use the service with service_id if the sender has the indefinite whitelister role Read more
Source§

fn revoke_indefinite_whitelist_status( &mut self, _service_id: &Bytes32, _user: &<Self as Whitelist>::Address, _setter: &<Self as Whitelist>::Address, ) -> (bool, U256)

Revokes the indefinite whitelist status granted to the user for the service by a specific account Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.