Enum dao::voting_contracts::AdminAction
source · pub enum AdminAction {
AddToWhitelist,
RemoveFromWhitelist,
ProposeNewOwner,
}
Expand description
Enum for actions that AdminContract can perform
AddToWhitelist
- callsadd_to_whitelist
methodRemoveFromWhitelist
- callsremove_from_whitelist
methodChangeOwner
- callschange_ownership
method
Variants§
Trait Implementations§
source§impl BorshDeserialize for Action
impl BorshDeserialize for Action
source§fn deserialize(buf: &mut &[u8]) -> Result<Self>
fn deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
source§impl PartialEq for Action
impl PartialEq for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnwindSafe for Action
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