pub enum OwnerUpdate {
ProposeNewOwner {
proposed: String,
},
ClearProposed,
AcceptProposed,
AbolishOwnerRole,
}Variants§
ProposeNewOwner
Proposes a new owner to take role. Only current owner can execute.
ClearProposed
Clears the currently proposed owner. Only current owner can execute.
AcceptProposed
Promotes the proposed owner to be the current one. Only the proposed owner can execute.
AbolishOwnerRole
Throws away the keys to the Owner role forever. Once done, no owner can ever be set later.
Trait Implementations§
Source§impl Clone for OwnerUpdate
impl Clone for OwnerUpdate
Source§fn clone(&self) -> OwnerUpdate
fn clone(&self) -> OwnerUpdate
Returns a duplicate 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 moreSource§impl Debug for OwnerUpdate
impl Debug for OwnerUpdate
Source§impl<'de> Deserialize<'de> for OwnerUpdate
impl<'de> Deserialize<'de> for OwnerUpdate
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 JsonSchema for OwnerUpdate
impl JsonSchema for OwnerUpdate
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for OwnerUpdate
impl PartialEq for OwnerUpdate
Source§impl Serialize for OwnerUpdate
impl Serialize for OwnerUpdate
impl StructuralPartialEq for OwnerUpdate
Auto Trait Implementations§
impl Freeze for OwnerUpdate
impl RefUnwindSafe for OwnerUpdate
impl Send for OwnerUpdate
impl Sync for OwnerUpdate
impl Unpin for OwnerUpdate
impl UnwindSafe for OwnerUpdate
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