pub struct ConsensusProposal {
pub slot: Slot,
pub parent_hash: ConsensusProposalHash,
pub cut: Cut,
pub staking_actions: Vec<ConsensusStakingAction>,
pub timestamp: TimestampMs,
}Fields§
§slot: Slot§parent_hash: ConsensusProposalHash§cut: Cut§staking_actions: Vec<ConsensusStakingAction>§timestamp: TimestampMsTrait Implementations§
Source§impl BorshDeserialize for ConsensusProposal
impl BorshDeserialize for ConsensusProposal
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ConsensusProposal
impl BorshSerialize for ConsensusProposal
Source§impl Clone for ConsensusProposal
impl Clone for ConsensusProposal
Source§fn clone(&self) -> ConsensusProposal
fn clone(&self) -> ConsensusProposal
Returns a duplicate 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 Debug for ConsensusProposal
impl Debug for ConsensusProposal
Source§impl Default for ConsensusProposal
impl Default for ConsensusProposal
Source§fn default() -> ConsensusProposal
fn default() -> ConsensusProposal
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConsensusProposal
impl<'de> Deserialize<'de> for ConsensusProposal
Source§fn 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
Source§impl Display for ConsensusProposal
impl Display for ConsensusProposal
Source§impl Hash for ConsensusProposal
impl Hash for ConsensusProposal
Source§impl Hashed<ConsensusProposalHash> for ConsensusProposal
This is the hash of the proposal, signed by validators
Any consensus-critical data should be hashed here.
impl Hashed<ConsensusProposalHash> for ConsensusProposal
This is the hash of the proposal, signed by validators Any consensus-critical data should be hashed here.
fn hashed(&self) -> ConsensusProposalHash
Source§impl Ord for ConsensusProposal
impl Ord for ConsensusProposal
Source§fn cmp(&self, other: &ConsensusProposal) -> Ordering
fn cmp(&self, other: &ConsensusProposal) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ConsensusProposal
impl PartialEq for ConsensusProposal
Source§impl PartialOrd for ConsensusProposal
impl PartialOrd for ConsensusProposal
Source§impl Serialize for ConsensusProposal
impl Serialize for ConsensusProposal
impl Eq for ConsensusProposal
impl StructuralPartialEq for ConsensusProposal
Auto Trait Implementations§
impl Freeze for ConsensusProposal
impl RefUnwindSafe for ConsensusProposal
impl Send for ConsensusProposal
impl Sync for ConsensusProposal
impl Unpin for ConsensusProposal
impl UnsafeUnpin for ConsensusProposal
impl UnwindSafe for ConsensusProposal
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.