# Struct ethcore::encoded::Header [−] [src]

    pub struct Header(_);

Owning header view.

## Methods

### `impl Header`
[src]

#### `fn new(encoded: Vec<u8>) -> Self`

Create a new owning header view. Expects the data to be an RLP-encoded header -- any other case will likely lead to panics further down the line.

#### `fn decode(&self) -> FullHeader`

Upgrade this encoded view to a fully owned `Header` object.

#### `fn view(&self) -> HeaderView`

Get a borrowed header view onto the data.

#### `fn rlp(&self) -> Rlp`

Get the rlp of the header.

#### `fn into_inner(self) -> Vec<u8>`

Consume the view and return the raw bytes.

### `impl Header`
[src]

#### `fn hash(&self) -> H256`

Returns the header hash.

#### `fn parent_hash(&self) -> H256`

Returns the parent hash.

#### `fn uncles_hash(&self) -> H256`

Returns the uncles hash.

#### `fn author(&self) -> Address`

Returns the author.

#### `fn state_root(&self) -> H256`

Returns the state root.

#### `fn transactions_root(&self) -> H256`

Returns the transaction trie root.

#### `fn receipts_root(&self) -> H256`

Returns the receipts trie root

#### `fn log_bloom(&self) -> H2048`

Returns the block log bloom

#### `fn difficulty(&self) -> U256`

Difficulty of this block

#### `fn number(&self) -> BlockNumber`

Number of this block.

#### `fn timestamp(&self) -> u64`

Time this block was produced.

#### `fn gas_limit(&self) -> U256`

Gas limit of this block.

#### `fn gas_used(&self) -> U256`

Total gas used in this block.

#### `fn extra_data(&self) -> Vec<u8>`

Block extra data.

#### `fn seal(&self) -> Vec<Vec<u8>>`

Engine-specific seal fields.

## Trait Implementations

### `impl Debug for Header`
[src]

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

Formats the value using the given formatter.

### `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 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 Eq for Header`
[src]

### `impl Hashable for Header`
[src]

#### `fn sha3(&self) -> H256`

Calculate SHA3 of this object.

#### `fn sha3_into(&self, dest: &mut [u8])`

Calculate SHA3 of this object and place result into dest.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result
+
  Collapse/expand all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)