[][src]Struct bft_core::types::Proposal

pub struct Proposal {
    pub height: u64,
    pub round: u64,
    pub content: Target,
    pub lock_round: Option<u64>,
    pub lock_votes: Vec<Vote>,
    pub proposer: Address,
}

A proposal

Fields

height: u64

The height of a proposal.

round: u64

The round of a proposal.

content: Target

The proposal content.

lock_round: Option<u64>

A lock round of the proposal. If the proposal has not been locked, it should be None.

lock_votes: Vec<Vote>

The lock votes of the proposal. If the proposal has not been locked, it should be an empty Vec.

proposer: Address

The address of proposer.

Trait Implementations

impl Eq for Proposal[src]

impl Clone for Proposal[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Proposal> for Proposal[src]

impl Debug for Proposal[src]

impl Serialize for Proposal[src]

impl<'de> Deserialize<'de> for Proposal[src]

Auto Trait Implementations

impl Send for Proposal

impl Sync for Proposal

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]