#[repr(i32)]pub enum ThresholdKind {
KindEntity = 0,
KindNodeValidator = 1,
KindNodeCompute = 2,
KindNodeKeyManager = 4,
KindRuntimeCompute = 5,
KindRuntimeKeyManager = 6,
}
Expand description
Kind of staking threshold.
Variants§
KindEntity = 0
Entity staking threshold.
KindNodeValidator = 1
Validator node staking threshold.
KindNodeCompute = 2
Compute node staking threshold.
KindNodeKeyManager = 4
Keymanager node staking threshold.
KindRuntimeCompute = 5
Compute runtime staking threshold.
KindRuntimeKeyManager = 6
Keymanager runtime staking threshold.
Trait Implementations§
source§impl Clone for ThresholdKind
impl Clone for ThresholdKind
source§fn clone(&self) -> ThresholdKind
fn clone(&self) -> ThresholdKind
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 moresource§impl Debug for ThresholdKind
impl Debug for ThresholdKind
source§impl Decode for ThresholdKind
impl Decode for ThresholdKind
source§fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
fn try_from_cbor_value(value: Value) -> Result<Self, DecodeError>
Try to decode from a given CBOR value.
§fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
fn try_default() -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a missing/null/undefined value.
§fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
fn try_from_cbor_value_default(value: Value) -> Result<Self, DecodeError>where
Self: Sized,
Try to decode from a given CBOR value, calling
try_default
in case the value is null or
undefined.source§impl Encode for ThresholdKind
impl Encode for ThresholdKind
source§impl Hash for ThresholdKind
impl Hash for ThresholdKind
source§impl Ord for ThresholdKind
impl Ord for ThresholdKind
source§fn cmp(&self, other: &ThresholdKind) -> Ordering
fn cmp(&self, other: &ThresholdKind) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ThresholdKind
impl PartialEq for ThresholdKind
source§fn eq(&self, other: &ThresholdKind) -> bool
fn eq(&self, other: &ThresholdKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ThresholdKind
impl PartialOrd for ThresholdKind
source§fn partial_cmp(&self, other: &ThresholdKind) -> Option<Ordering>
fn partial_cmp(&self, other: &ThresholdKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ThresholdKind
impl StructuralPartialEq for ThresholdKind
Auto Trait Implementations§
impl Freeze for ThresholdKind
impl RefUnwindSafe for ThresholdKind
impl Send for ThresholdKind
impl Sync for ThresholdKind
impl Unpin for ThresholdKind
impl UnwindSafe for ThresholdKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.