#[repr(u8)]pub enum QuorumRule {
Any = 0,
All = 1,
AtLeast(u8),
}Expand description
Quorum rule for policy satisfaction
Variants§
Any = 0
Any single group satisfies
All = 1
All groups must satisfy
AtLeast(u8)
At least N groups must satisfy
Trait Implementations§
Source§impl Clone for QuorumRule
impl Clone for QuorumRule
Source§fn clone(&self) -> QuorumRule
fn clone(&self) -> QuorumRule
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 QuorumRule
impl Debug for QuorumRule
Source§impl<'de> Deserialize<'de> for QuorumRule
impl<'de> Deserialize<'de> for QuorumRule
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 QuorumRule
impl PartialEq for QuorumRule
Source§fn eq(&self, other: &QuorumRule) -> bool
fn eq(&self, other: &QuorumRule) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuorumRule
impl Serialize for QuorumRule
impl Copy for QuorumRule
impl Eq for QuorumRule
impl StructuralPartialEq for QuorumRule
Auto Trait Implementations§
impl Freeze for QuorumRule
impl RefUnwindSafe for QuorumRule
impl Send for QuorumRule
impl Sync for QuorumRule
impl Unpin for QuorumRule
impl UnsafeUnpin for QuorumRule
impl UnwindSafe for QuorumRule
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