# Struct ethcore::receipt::Receipt [−] [src]

    pub struct Receipt {
        pub state_root: Option<H256>,
        pub gas_used: U256,
        pub log_bloom: H2048,
        pub logs: Vec<LogEntry>,
    }

Information describing execution of a transaction.

## Fields

`state_root: Option<H256>`

The state root after executing the transaction. Optional since EIP98

`gas_used: U256`

The total gas used in the block following execution of the transaction.

`log_bloom: H2048`

The OR-wide combination of all logs' blooms for this transaction.

`logs: Vec<LogEntry>`

The logs stemming from this transaction.

## Methods

### `impl Receipt`
[src]

#### `fn new(state_root: Option<H256>, gas_used: U256, logs: Vec<LogEntry>) -> Receipt`

Create a new receipt.

## Trait Implementations

### `impl Default for Receipt`
[src]

#### `fn default() -> Receipt`

Returns the "default value" for a type. Read more

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

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

Formats the value using the given formatter.

### `impl Clone for Receipt`
[src]

#### `fn clone(&self) -> Receipt`

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 Encodable for Receipt`
[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 Receipt`
[src]

#### `fn decode<D>(decoder: &D) -> Result<Self, DecoderError> where D: Decoder`

Decode a value from RLP bytes

### `impl HeapSizeOf for Receipt`
[src]

#### `fn heap_size_of_children(&self) -> usize`

Measure the size of any heap-allocated structures that hang off this value, but not the space taken up by the value itself (i.e. what size_of::<T> measures, more or less); that space is handled by the implementation of HeapSizeOf for Box<T> below. Read more

# 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`)