Struct block::Header
[−]
[src]
pub struct Header {
pub parent_hash: H256,
pub ommers_hash: H256,
pub beneficiary: Address,
pub state_root: H256,
pub transactions_root: H256,
pub receipts_root: H256,
pub logs_bloom: LogsBloom,
pub difficulty: U256,
pub number: U256,
pub gas_limit: Gas,
pub gas_used: Gas,
pub timestamp: u64,
pub extra_data: B256,
pub mix_hash: H256,
pub nonce: H64,
}Fields
parent_hash: H256
ommers_hash: H256
beneficiary: Address
state_root: H256
transactions_root: H256
receipts_root: H256
logs_bloom: LogsBloom
difficulty: U256
number: U256
gas_limit: Gas
gas_used: Gas
timestamp: u64
extra_data: B256
mix_hash: H256
nonce: H64
Methods
impl Header[src]
fn partial_rlp_append(&self, s: &mut RlpStream)[src]
fn partial_hash(&self) -> H256[src]
Trait Implementations
impl Clone for Header[src]
fn clone(&self) -> Header[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for Header[src]
impl PartialEq for Header[src]
fn eq(&self, __arg_0: &Header) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Header) -> bool[src]
This method tests for !=.
impl Eq for Header[src]
impl HeaderHash<H256> for Header[src]
fn parent_hash(&self) -> H256[src]
fn header_hash(&self) -> H256[src]
impl Encodable for Header[src]
fn rlp_append(&self, s: &mut RlpStream)[src]
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>[src]
Get rlp-encoded bytes for this instance
impl Decodable for Header[src]
fn decode(rlp: &UntrustedRlp) -> Result<Self, DecoderError>[src]
Decode a value from RLP bytes