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 for CompactCommit<H, N, S, Id>
impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq for CompactCommit<H, N, S, Id>
impl<H: Eq, N: Eq, S: Eq, Id: Eq> Eq for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> StructuralPartialEq for CompactCommit<H, N, S, Id>
Auto Trait Implementations§
impl<H, N, S, Id> Freeze for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> RefUnwindSafe for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> Send for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> Sync for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> Unpin for CompactCommit<H, N, S, Id>
impl<H, N, S, Id> UnwindSafe for CompactCommit<H, N, S, Id>
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,
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