Struct dao::modules::whitelist::WhitelistRef
source · pub struct WhitelistRef { /* private fields */ }
Expand description
Reference to the Whitelist contract instance.
Implementations§
source§impl WhitelistRef
impl WhitelistRef
source§impl WhitelistRef
impl WhitelistRef
sourcepub fn add_to_whitelist(&mut self, address: Address)
pub fn add_to_whitelist(&mut self, address: Address)
Add new address
to the whitelist.
sourcepub fn remove_from_whitelist(&mut self, address: Address)
pub fn remove_from_whitelist(&mut self, address: Address)
Remove an address
from the whitelist.
sourcepub fn ensure_whitelisted(&self)
pub fn ensure_whitelisted(&self)
Assert the caller is on the list. Revert otherwise.
sourcepub fn is_whitelisted(&self, address: Address) -> bool
pub fn is_whitelisted(&self, address: Address) -> bool
Returns true if the address is whitelisted.
Trait Implementations§
source§impl Clone for WhitelistRef
impl Clone for WhitelistRef
source§fn clone(&self) -> WhitelistRef
fn clone(&self) -> WhitelistRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WhitelistRef
impl Send for WhitelistRef
impl Sync for WhitelistRef
impl Unpin for WhitelistRef
impl UnwindSafe for WhitelistRef
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