[][src]Struct exonum_configuration::Vote

pub struct Vote {
    pub cfg_hash: Hash,
}

Vote for the new configuration.

Notes

The stored version of the transaction has a special variant corresponding to absence of a vote. See MaybeVote for details.

See ErrorCode for the description of error codes emitted by the execute() method.

Fields

cfg_hash: Hash

Hash of the configuration that this vote is for.

See crate docs for more details on how the hash is calculated.

Methods

impl Vote[src]

pub fn sign(
    author: &PublicKey,
    cfg_hash: &Hash,
    key: &SecretKey
) -> Signed<RawTransaction>
[src]

Create Signed for Vote transaction, signed by provided keys.

Trait Implementations

impl Into<ServiceTransaction> for Vote[src]

impl From<Vote> for ConfigurationTransactions[src]

impl Clone for Vote[src]

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

Performs copy-assignment from source. Read more

impl Debug for Vote[src]

impl Serialize for Vote[src]

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

impl ProtobufConvert for Vote[src]

type ProtoStruct = Vote

Type of the protobuf clone of Self

impl BinaryForm for Vote[src]

impl CryptoHash for Vote[src]

impl StorageValue for Vote[src]

impl Transaction for Vote[src]

Auto Trait Implementations

impl Send for Vote

impl Sync for Vote

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

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

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> Any for T where
    T: 'static + ?Sized
[src]

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

impl<T> BinaryForm for T where
    T: Message
[src]

impl<T> Erased for T

impl<T> UniqueHash for T where
    T: CryptoHash, 
[src]

impl<T> Same for T

type Output = T

Should always be Self

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