[][src]Struct tendermint_testgen::vote::Vote

pub struct Vote {
    pub validator: Option<Validator>,
    pub index: Option<u16>,
    pub header: Option<Header>,
    pub prevote: Option<()>,
    pub height: Option<u64>,
    pub time: Option<u64>,
    pub round: Option<u32>,
    pub is_nil: Option<()>,
}

Fields

validator: Option<Validator>index: Option<u16>header: Option<Header>prevote: Option<()>height: Option<u64>time: Option<u64>round: Option<u32>is_nil: Option<()>

Implementations

impl Vote[src]

pub fn new(validator: Validator, header: Header) -> Self[src]

pub fn index(self, index: u16) -> Self[src]

pub fn header(self, header: Header) -> Self[src]

pub fn prevote(self, prevote: bool) -> Self[src]

pub fn height(self, height: u64) -> Self[src]

pub fn time(self, time: u64) -> Self[src]

pub fn round(self, round: u32) -> Self[src]

Trait Implementations

impl Clone for Vote[src]

impl Debug for Vote[src]

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

impl FromStr for Vote[src]

type Err = SimpleError

The associated error which can be returned from parsing.

impl Generator<Vote> for Vote[src]

impl Options for Vote[src]

impl Serialize for Vote[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,