[][src]Struct exonum_configuration::ProposeData

pub struct ProposeData {
    pub tx_propose: Propose,
    pub votes_history_hash: Hash,
    pub num_validators: u64,
}

Extended information about a proposal used for the storage.

Fields

tx_propose: Propose

Proposal transaction.

votes_history_hash: Hash

Merkle root of all votes for the proposal.

num_validators: u64

Number of eligible voting validators.

Methods

impl ProposeData[src]

pub fn new(
    tx_propose: Propose,
    votes_history_hash: &Hash,
    num_validators: u64
) -> Self
[src]

New ProposeData.

Trait Implementations

impl Clone for ProposeData[src]

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

Performs copy-assignment from source. Read more

impl PartialEq<ProposeData> for ProposeData[src]

impl Debug for ProposeData[src]

impl Serialize for ProposeData[src]

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

impl BinaryValue for ProposeData[src]

fn into_bytes(self) -> Vec<u8>[src]

Consumes and serializes the given value to the vector of bytes. This method is faster with the wrapped values, thus if you wouldn't use value after serialization use it. Read more

impl ObjectHash for ProposeData[src]

impl CryptoHash for ProposeData[src]

impl ProtobufConvert for ProposeData[src]

type ProtoStruct = ProposeData

Type of the protobuf clone of Self

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Erased for T

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