pub struct Proposal<V, A> {
pub height: u64,
pub round: Round,
pub value: V,
pub pol_round: Round,
pub proposer: A,
}Expand description
A proposal for a block value in a consensus round.
A proposal is created by the designated proposer for a given height and round. It contains the proposed block value along with additional metadata.
Fields§
§height: u64The blockchain height
round: RoundThe consensus round number
value: VThe proposed consensus value
pol_round: RoundThe POL round for which the proposal is for
proposer: AThe address of the proposer
Trait Implementations§
Source§impl<'de, V, A> Deserialize<'de> for Proposal<V, A>where
V: Deserialize<'de>,
A: Deserialize<'de>,
impl<'de, V, A> Deserialize<'de> for Proposal<V, A>where
V: Deserialize<'de>,
A: Deserialize<'de>,
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
impl<V: Eq, A: Eq> Eq for Proposal<V, A>
impl<V, A> StructuralPartialEq for Proposal<V, A>
Auto Trait Implementations§
impl<V, A> Freeze for Proposal<V, A>
impl<V, A> RefUnwindSafe for Proposal<V, A>where
V: RefUnwindSafe,
A: RefUnwindSafe,
impl<V, A> Send for Proposal<V, A>
impl<V, A> Sync for Proposal<V, A>
impl<V, A> Unpin for Proposal<V, A>
impl<V, A> UnwindSafe for Proposal<V, A>where
V: UnwindSafe,
A: UnwindSafe,
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