Struct exonum_configuration::Propose []

pub struct Propose { /* fields omitted */ }

Propose a new configuration.

Notes

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

Methods

impl Propose

Creates message and signs it.

Creates message and appends existing signature.

Returns the hex representation of the binary data. Lower case letters are used (e.g. f9b4ca).

Sender of the transaction.

Should be one of validators as per the active configuration.

Configuration in JSON format.

Should be convertible into StoredConfiguration.

Trait Implementations

impl Clone for Propose

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Propose

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl ServiceMessage for Propose

SERVICE_ID: u16 = super::SERVICE_ID

ID of the service this message belongs to.

MESSAGE_ID: u16 = 0

ID of the message itself. Should be unique within a service. Read more

impl Message for Propose

Converts the raw message into the specific one.

Returns raw message.

[src]

Verifies the message using given public key.

impl<'a> SegmentField<'a> for Propose

size of item fixed part that this Field collect.

count of items in collection

extend buffer with this collection

create collection from buffer

check collection data

impl AsRef<RawMessage> for Propose

Performs the conversion.

impl FromHex for Propose

Creates an instance of type Self from the given hex string, or fails with a custom error type. Read more

impl StorageValue for Propose

Important traits for Vec<u8>

Serialize a value into a vector of bytes.

Deserialize a value from bytes.

impl Debug for Propose

Formats the value using the given formatter. Read more

impl ExonumJson for Propose

write deserialized field in buffer on place.

serialize field as json::Value

impl ExonumJsonDeserialize for Propose

deserialize json value.

impl<'de> Deserialize<'de> for Propose

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Propose

Serialize this value into the given Serde serializer. Read more

impl Transaction for Propose
[src]

[src]

Verifies the internal consistency of the transaction. verify should usually include checking the message signature (via [verify_signature]) and, possibly, other internal constraints. verify has no access to the blockchain state; checks involving the blockchains state must be preformed in execute. Read more

[src]

Receives a fork of the current blockchain state and can modify it depending on the contents of the transaction. Read more

Auto Trait Implementations

impl Send for Propose

impl Sync for Propose