#[repr(u8)]pub enum ControllerModel {
SingleSigner = 0,
MultiSig = 1,
BoardMultiSig = 2,
TokenGovernance = 3,
Hybrid = 4,
}Expand description
Controller model hints
Variants§
SingleSigner = 0
Single authorized signer
MultiSig = 1
Multi-signature (M-of-N)
BoardMultiSig = 2
Board of directors
TokenGovernance = 3
Token-weighted governance
Hybrid = 4
Hybrid (board + token)
Implementations§
Trait Implementations§
Source§impl Clone for ControllerModel
impl Clone for ControllerModel
Source§fn clone(&self) -> ControllerModel
fn clone(&self) -> ControllerModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ControllerModel
impl Debug for ControllerModel
Source§impl<'de> Deserialize<'de> for ControllerModel
impl<'de> Deserialize<'de> for ControllerModel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ControllerModel
impl Hash for ControllerModel
Source§impl PartialEq for ControllerModel
impl PartialEq for ControllerModel
Source§fn eq(&self, other: &ControllerModel) -> bool
fn eq(&self, other: &ControllerModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ControllerModel
impl Serialize for ControllerModel
impl Copy for ControllerModel
impl Eq for ControllerModel
impl StructuralPartialEq for ControllerModel
Auto Trait Implementations§
impl Freeze for ControllerModel
impl RefUnwindSafe for ControllerModel
impl Send for ControllerModel
impl Sync for ControllerModel
impl Unpin for ControllerModel
impl UnsafeUnpin for ControllerModel
impl UnwindSafe for ControllerModel
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