pub struct QuorumEvidence {
pub threshold: u32,
pub votes: Vec<QuorumVote>,
}Expand description
Quorum decision evidence.
Fields§
§threshold: u32§votes: Vec<QuorumVote>Implementations§
Source§impl QuorumEvidence
impl QuorumEvidence
Sourcepub fn is_met(&self) -> bool
pub fn is_met(&self) -> bool
Returns true if the raw approval count (all votes, regardless of
provenance) meets the threshold. Used for legacy/simple quorum checks.
Sourcepub fn is_met_authentic(&self) -> bool
pub fn is_met_authentic(&self) -> bool
Returns true if the threshold is met counting only non-synthetic
approved votes with explicit human, independent, first-order provenance.
Missing, system, synthetic, coordinated, or derivative provenance is
excluded from the human count per CR-001 §8.3.
Sourcepub fn synthetic_vote_count(&self) -> usize
pub fn synthetic_vote_count(&self) -> usize
Count of votes where provenance explicitly marks the voter as synthetic.
Sourcepub fn duplicate_voters(&self) -> BTreeSet<Did>
pub fn duplicate_voters(&self) -> BTreeSet<Did>
Voter DIDs that appear more than once in the evidence.
Sourcepub fn distinct_approved_voter_count(&self) -> usize
pub fn distinct_approved_voter_count(&self) -> usize
Count distinct approved voter DIDs, regardless of provenance.
Sourcepub fn distinct_authentic_approved_voter_count(&self) -> usize
pub fn distinct_authentic_approved_voter_count(&self) -> usize
Count distinct approved voter DIDs that are not synthetic.
Trait Implementations§
Source§impl Clone for QuorumEvidence
impl Clone for QuorumEvidence
Source§fn clone(&self) -> QuorumEvidence
fn clone(&self) -> QuorumEvidence
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 QuorumEvidence
impl Debug for QuorumEvidence
Source§impl<'de> Deserialize<'de> for QuorumEvidence
impl<'de> Deserialize<'de> for QuorumEvidence
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
impl Eq for QuorumEvidence
Source§impl PartialEq for QuorumEvidence
impl PartialEq for QuorumEvidence
Source§fn eq(&self, other: &QuorumEvidence) -> bool
fn eq(&self, other: &QuorumEvidence) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuorumEvidence
impl Serialize for QuorumEvidence
impl StructuralPartialEq for QuorumEvidence
Auto Trait Implementations§
impl Freeze for QuorumEvidence
impl RefUnwindSafe for QuorumEvidence
impl Send for QuorumEvidence
impl Sync for QuorumEvidence
impl Unpin for QuorumEvidence
impl UnsafeUnpin for QuorumEvidence
impl UnwindSafe for QuorumEvidence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more