pub enum NodeRegistryOperation {
Register {
role: NodeRole,
stake: u64,
},
UpdateStatus {
target: Address,
new_status: NodeStatus,
},
}Expand description
Operations that can be performed on the node registry
Variants§
Register
Register a new node with a role and initial stake
UpdateStatus
Update a node’s status (e.g. slash)
Trait Implementations§
Source§impl Clone for NodeRegistryOperation
impl Clone for NodeRegistryOperation
Source§fn clone(&self) -> NodeRegistryOperation
fn clone(&self) -> NodeRegistryOperation
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 NodeRegistryOperation
impl Debug for NodeRegistryOperation
Source§impl<'de> Deserialize<'de> for NodeRegistryOperation
impl<'de> Deserialize<'de> for NodeRegistryOperation
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 PartialEq for NodeRegistryOperation
impl PartialEq for NodeRegistryOperation
Source§fn eq(&self, other: &NodeRegistryOperation) -> bool
fn eq(&self, other: &NodeRegistryOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NodeRegistryOperation
impl Serialize for NodeRegistryOperation
impl Eq for NodeRegistryOperation
impl StructuralPartialEq for NodeRegistryOperation
Auto Trait Implementations§
impl Freeze for NodeRegistryOperation
impl RefUnwindSafe for NodeRegistryOperation
impl Send for NodeRegistryOperation
impl Sync for NodeRegistryOperation
impl Unpin for NodeRegistryOperation
impl UnsafeUnpin for NodeRegistryOperation
impl UnwindSafe for NodeRegistryOperation
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