Struct finality_grandpa::CompactCommit
source · pub struct CompactCommit<H, N, S, Id> {
pub target_hash: H,
pub target_number: N,
pub precommits: Vec<Precommit<H, N>>,
pub auth_data: MultiAuthData<S, Id>,
}
Expand description
A commit message with compact representation of authentication data.
Fields§
§target_hash: H
The target block’s hash.
target_number: N
The target block’s number.
precommits: Vec<Precommit<H, N>>
Precommits for target block or any block after it that justify this commit.
auth_data: MultiAuthData<S, Id>
Authentication data for the commit.
Trait Implementations§
source§impl<H: Clone, N: Clone, S: Clone, Id: Clone> Clone for CompactCommit<H, N, S, Id>
impl<H: Clone, N: Clone, S: Clone, Id: Clone> Clone for CompactCommit<H, N, S, Id>
source§fn clone(&self) -> CompactCommit<H, N, S, Id>
fn clone(&self) -> CompactCommit<H, N, S, Id>
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<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
impl<H: Clone, N: Clone, S, Id> From<Commit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
source§fn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
fn from(commit: Commit<H, N, S, Id>) -> CompactCommit<H, N, S, Id>
Converts to this type from the input type.
source§impl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
impl<H, N, S, Id> From<CompactCommit<H, N, S, Id>> for Commit<H, N, S, Id>
source§fn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
fn from(commit: CompactCommit<H, N, S, Id>) -> Commit<H, N, S, Id>
Converts to this type from the input type.
source§impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq<CompactCommit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq<CompactCommit<H, N, S, Id>> for CompactCommit<H, N, S, Id>
source§fn eq(&self, other: &CompactCommit<H, N, S, Id>) -> bool
fn eq(&self, other: &CompactCommit<H, N, S, Id>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.