Type Alias polkadot_statement_table::v2::Summary

source ·
pub type Summary = Summary<CandidateHash, CoreIndex>;
Expand description

A summary of import of a statement.

Aliased Type§

struct Summary {
    pub candidate: CandidateHash,
    pub group_id: CoreIndex,
    pub validity_votes: usize,
}

Fields§

§candidate: CandidateHash

The digest of the candidate referenced.

§group_id: CoreIndex

The group that the candidate is in.

§validity_votes: usize

How many validity votes are currently witnessed.

Trait Implementations

source§

impl<Digest: Clone, Group: Clone> Clone for Summary<Digest, Group>

source§

fn clone(&self) -> Summary<Digest, Group>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Digest: Debug, Group: Debug> Debug for Summary<Digest, Group>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<Digest: PartialEq, Group: PartialEq> PartialEq for Summary<Digest, Group>

source§

fn eq(&self, other: &Summary<Digest, Group>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<Digest: Eq, Group: Eq> Eq for Summary<Digest, Group>

source§

impl<Digest, Group> StructuralPartialEq for Summary<Digest, Group>