[][src]Struct abci::Header

pub struct Header {
    pub version: SingularPtrField<Version>,
    pub chain_id: String,
    pub height: i64,
    pub time: SingularPtrField<Timestamp>,
    pub num_txs: i64,
    pub total_txs: i64,
    pub last_block_id: SingularPtrField<BlockID>,
    pub last_commit_hash: Vec<u8>,
    pub data_hash: Vec<u8>,
    pub validators_hash: Vec<u8>,
    pub next_validators_hash: Vec<u8>,
    pub consensus_hash: Vec<u8>,
    pub app_hash: Vec<u8>,
    pub last_results_hash: Vec<u8>,
    pub evidence_hash: Vec<u8>,
    pub proposer_address: Vec<u8>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

version: SingularPtrField<Version>chain_id: Stringheight: i64time: SingularPtrField<Timestamp>num_txs: i64total_txs: i64last_block_id: SingularPtrField<BlockID>last_commit_hash: Vec<u8>data_hash: Vec<u8>validators_hash: Vec<u8>next_validators_hash: Vec<u8>consensus_hash: Vec<u8>app_hash: Vec<u8>last_results_hash: Vec<u8>evidence_hash: Vec<u8>proposer_address: Vec<u8>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Header
[src]

pub fn new() -> Header
[src]

pub fn clear_version(&mut self)
[src]

pub fn has_version(&self) -> bool
[src]

pub fn set_version(&mut self, v: Version)
[src]

pub fn mut_version(&mut self) -> &mut Version
[src]

pub fn take_version(&mut self) -> Version
[src]

pub fn get_version(&self) -> &Version
[src]

pub fn clear_chain_id(&mut self)
[src]

pub fn set_chain_id(&mut self, v: String)
[src]

pub fn mut_chain_id(&mut self) -> &mut String
[src]

pub fn take_chain_id(&mut self) -> String
[src]

pub fn get_chain_id(&self) -> &str
[src]

pub fn clear_height(&mut self)
[src]

pub fn set_height(&mut self, v: i64)
[src]

pub fn get_height(&self) -> i64
[src]

pub fn clear_time(&mut self)
[src]

pub fn has_time(&self) -> bool
[src]

pub fn set_time(&mut self, v: Timestamp)
[src]

pub fn mut_time(&mut self) -> &mut Timestamp
[src]

pub fn take_time(&mut self) -> Timestamp
[src]

pub fn get_time(&self) -> &Timestamp
[src]

pub fn clear_num_txs(&mut self)
[src]

pub fn set_num_txs(&mut self, v: i64)
[src]

pub fn get_num_txs(&self) -> i64
[src]

pub fn clear_total_txs(&mut self)
[src]

pub fn set_total_txs(&mut self, v: i64)
[src]

pub fn get_total_txs(&self) -> i64
[src]

pub fn clear_last_block_id(&mut self)
[src]

pub fn has_last_block_id(&self) -> bool
[src]

pub fn set_last_block_id(&mut self, v: BlockID)
[src]

pub fn mut_last_block_id(&mut self) -> &mut BlockID
[src]

pub fn take_last_block_id(&mut self) -> BlockID
[src]

pub fn get_last_block_id(&self) -> &BlockID
[src]

pub fn clear_last_commit_hash(&mut self)
[src]

pub fn set_last_commit_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_last_commit_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_last_commit_hash(&mut self) -> Vec<u8>
[src]

pub fn get_last_commit_hash(&self) -> &[u8]
[src]

pub fn clear_data_hash(&mut self)
[src]

pub fn set_data_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_data_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_data_hash(&mut self) -> Vec<u8>
[src]

pub fn get_data_hash(&self) -> &[u8]
[src]

pub fn clear_validators_hash(&mut self)
[src]

pub fn set_validators_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_validators_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_validators_hash(&mut self) -> Vec<u8>
[src]

pub fn get_validators_hash(&self) -> &[u8]
[src]

pub fn clear_next_validators_hash(&mut self)
[src]

pub fn set_next_validators_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_next_validators_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_next_validators_hash(&mut self) -> Vec<u8>
[src]

pub fn get_next_validators_hash(&self) -> &[u8]
[src]

pub fn clear_consensus_hash(&mut self)
[src]

pub fn set_consensus_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_consensus_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_consensus_hash(&mut self) -> Vec<u8>
[src]

pub fn get_consensus_hash(&self) -> &[u8]
[src]

pub fn clear_app_hash(&mut self)
[src]

pub fn set_app_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_app_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_app_hash(&mut self) -> Vec<u8>
[src]

pub fn get_app_hash(&self) -> &[u8]
[src]

pub fn clear_last_results_hash(&mut self)
[src]

pub fn set_last_results_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_last_results_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_last_results_hash(&mut self) -> Vec<u8>
[src]

pub fn get_last_results_hash(&self) -> &[u8]
[src]

pub fn clear_evidence_hash(&mut self)
[src]

pub fn set_evidence_hash(&mut self, v: Vec<u8>)
[src]

pub fn mut_evidence_hash(&mut self) -> &mut Vec<u8>
[src]

pub fn take_evidence_hash(&mut self) -> Vec<u8>
[src]

pub fn get_evidence_hash(&self) -> &[u8]
[src]

pub fn clear_proposer_address(&mut self)
[src]

pub fn set_proposer_address(&mut self, v: Vec<u8>)
[src]

pub fn mut_proposer_address(&mut self) -> &mut Vec<u8>
[src]

pub fn take_proposer_address(&mut self) -> Vec<u8>
[src]

pub fn get_proposer_address(&self) -> &[u8]
[src]

Trait Implementations

impl Default for Header
[src]

impl PartialEq<Header> for Header
[src]

impl Clone for Header
[src]

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

Performs copy-assignment from source. Read more

impl Debug for Header
[src]

impl Message for Header
[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
[src]

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
[src]

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
[src]

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>
[src]

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
[src]

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
[src]

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

fn type_id(&self) -> TypeId
[src]

Get type id for downcasting.

impl Clear for Header
[src]

impl ProtobufValue for Header
[src]

fn as_any(&self) -> &(dyn Any + 'static)
[src]

fn is_non_zero(&self) -> bool
[src]

fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]

Auto Trait Implementations

impl Send for Header

impl Sync for Header

Blanket Implementations

impl<T> From for T
[src]

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, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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