pub struct Commit<H, N, S, Id> {
pub target_hash: H,
pub target_number: N,
pub precommits: Vec<SignedPrecommit<H, N, S, Id>>,
}
Expand description
A commit message which is an aggregate of precommits.
Fields§
§target_hash: H
The target block’s hash.
target_number: N
The target block’s number.
precommits: Vec<SignedPrecommit<H, N, S, Id>>
Precommits for target block or any block after it that justify this commit.
Trait Implementations§
Source§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 Commit<H, N, S, Id>
impl<H: PartialEq, N: PartialEq, S: PartialEq, Id: PartialEq> PartialEq for Commit<H, N, S, Id>
impl<H: Eq, N: Eq, S: Eq, Id: Eq> Eq for Commit<H, N, S, Id>
impl<H, N, S, Id> StructuralPartialEq for Commit<H, N, S, Id>
Auto Trait Implementations§
impl<H, N, S, Id> Freeze for Commit<H, N, S, Id>
impl<H, N, S, Id> RefUnwindSafe for Commit<H, N, S, Id>
impl<H, N, S, Id> Send for Commit<H, N, S, Id>
impl<H, N, S, Id> Sync for Commit<H, N, S, Id>
impl<H, N, S, Id> Unpin for Commit<H, N, S, Id>
impl<H, N, S, Id> UnwindSafe for Commit<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