Struct block::PartialHeader
[−]
[src]
pub struct PartialHeader { 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, }
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
Methods
impl PartialHeader
[src]
Trait Implementations
impl Clone for PartialHeader
[src]
fn clone(&self) -> PartialHeader
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 Debug for PartialHeader
[src]
impl PartialEq for PartialHeader
[src]
fn eq(&self, __arg_0: &PartialHeader) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PartialHeader) -> bool
This method tests for !=
.
impl Eq for PartialHeader
[src]
impl HeaderHash<H256> for PartialHeader
[src]
fn parent_hash(&self) -> H256
fn header_hash(&self) -> H256
impl Encodable for PartialHeader
[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Decodable for PartialHeader
[src]
fn decode(rlp: &UntrustedRlp) -> Result<Self, DecoderError>
Decode a value from RLP bytes