Struct overlord::types::AggregatedVote
source · [−]pub struct AggregatedVote {
pub signature: AggregatedSignature,
pub vote_type: VoteType,
pub height: u64,
pub round: u64,
pub block_hash: Hash,
pub leader: Address,
}
Expand description
An aggregated vote.
Fields
signature: AggregatedSignature
Aggregated signature of the vote.
vote_type: VoteType
Type of the vote.
height: u64
Height of the vote.
round: u64
Round of the vote.
block_hash: Hash
Proposal hash of the vote.
leader: Address
The leader that aggregate the signed votes.
Implementations
sourceimpl AggregatedVote
impl AggregatedVote
Trait Implementations
sourceimpl Clone for AggregatedVote
impl Clone for AggregatedVote
sourcefn clone(&self) -> AggregatedVote
fn clone(&self) -> AggregatedVote
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AggregatedVote
impl Debug for AggregatedVote
sourceimpl Decodable for AggregatedVote
impl Decodable for AggregatedVote
sourcefn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(r: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
sourceimpl<'de> Deserialize<'de> for AggregatedVote
impl<'de> Deserialize<'de> for AggregatedVote
sourcefn 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
sourceimpl Display for AggregatedVote
impl Display for AggregatedVote
sourceimpl Encodable for AggregatedVote
impl Encodable for AggregatedVote
sourceimpl Hash for AggregatedVote
impl Hash for AggregatedVote
sourceimpl PartialEq<AggregatedVote> for AggregatedVote
impl PartialEq<AggregatedVote> for AggregatedVote
sourcefn eq(&self, other: &AggregatedVote) -> bool
fn eq(&self, other: &AggregatedVote) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AggregatedVote) -> bool
fn ne(&self, other: &AggregatedVote) -> bool
This method tests for !=
.
sourceimpl Serialize for AggregatedVote
impl Serialize for AggregatedVote
impl Eq for AggregatedVote
impl StructuralEq for AggregatedVote
impl StructuralPartialEq for AggregatedVote
Auto Trait Implementations
impl RefUnwindSafe for AggregatedVote
impl Send for AggregatedVote
impl Sync for AggregatedVote
impl Unpin for AggregatedVote
impl UnwindSafe for AggregatedVote
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more