Struct rust_abci::types::Header
[−]
[src]
pub struct Header { pub chain_id: String, pub height: u64, pub time: u64, pub num_txs: u64, pub last_commit_hash: Vec<u8>, pub data_hash: Vec<u8>, pub validators_hash: Vec<u8>, pub app_hash: Vec<u8>, // some fields omitted }
Fields
chain_id: String
height: u64
time: u64
num_txs: u64
last_commit_hash: Vec<u8>
data_hash: Vec<u8>
validators_hash: Vec<u8>
app_hash: Vec<u8>
Methods
impl Header
[src]
fn new() -> Header
fn default_instance() -> &'static Header
fn clear_chain_id(&mut self)
fn set_chain_id(&mut self, v: String)
fn mut_chain_id(&mut self) -> &mut String
fn take_chain_id(&mut self) -> String
fn get_chain_id(&self) -> &str
fn clear_height(&mut self)
fn set_height(&mut self, v: u64)
fn get_height(&self) -> u64
fn clear_time(&mut self)
fn set_time(&mut self, v: u64)
fn get_time(&self) -> u64
fn clear_num_txs(&mut self)
fn set_num_txs(&mut self, v: u64)
fn get_num_txs(&self) -> u64
fn clear_last_block_id(&mut self)
fn has_last_block_id(&self) -> bool
fn set_last_block_id(&mut self, v: BlockID)
fn mut_last_block_id(&mut self) -> &mut BlockID
fn take_last_block_id(&mut self) -> BlockID
fn get_last_block_id(&self) -> &BlockID
fn clear_last_commit_hash(&mut self)
fn set_last_commit_hash(&mut self, v: Vec<u8>)
fn mut_last_commit_hash(&mut self) -> &mut Vec<u8>
fn take_last_commit_hash(&mut self) -> Vec<u8>
fn get_last_commit_hash(&self) -> &[u8]
fn clear_data_hash(&mut self)
fn set_data_hash(&mut self, v: Vec<u8>)
fn mut_data_hash(&mut self) -> &mut Vec<u8>
fn take_data_hash(&mut self) -> Vec<u8>
fn get_data_hash(&self) -> &[u8]
fn clear_validators_hash(&mut self)
fn set_validators_hash(&mut self, v: Vec<u8>)
fn mut_validators_hash(&mut self) -> &mut Vec<u8>
fn take_validators_hash(&mut self) -> Vec<u8>
fn get_validators_hash(&self) -> &[u8]
fn clear_app_hash(&mut self)
fn set_app_hash(&mut self, v: Vec<u8>)
fn mut_app_hash(&mut self) -> &mut Vec<u8>
fn take_app_hash(&mut self) -> Vec<u8>
fn get_app_hash(&self) -> &[u8]
Trait Implementations
impl PartialEq for Header
[src]
fn eq(&self, __arg_0: &Header) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Header) -> bool
This method tests for !=
.
impl Clone for Header
[src]
fn clone(&self) -> Header
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for Header
[src]
impl Sync for Header
[src]
impl Message for Header
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
&self,
os: &mut CodedOutputStream
) -> Result<(), ProtobufError>
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
&self,
vec: &mut Vec<u8>
) -> Result<(), ProtobufError>
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
fn check_initialized(&self) -> Result<(), ProtobufError>
fn write_to_writer(&self, w: &mut Write) -> Result<(), ProtobufError>
fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>
fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>
fn write_length_delimited_to_writer(
&self,
w: &mut Write
) -> Result<(), ProtobufError>
&self,
w: &mut Write
) -> Result<(), ProtobufError>