Struct common_types::receipt::Receipt [−][src]
pub struct Receipt { pub gas_used: U256, pub log_bloom: Bloom, pub logs: Vec<LogEntry>, pub outcome: TransactionOutcome, }
Information describing execution of a transaction.
Fields
gas_used: U256
The total gas used in the block following execution of the transaction.
log_bloom: Bloom
The OR-wide combination of all logs' blooms for this transaction.
logs: Vec<LogEntry>
The logs stemming from this transaction.
outcome: TransactionOutcome
Transaction outcome.
Methods
impl Receipt
[src]
impl Receipt
pub fn new(
outcome: TransactionOutcome,
gas_used: U256,
logs: Vec<LogEntry>
) -> Self
[src]
pub fn new(
outcome: TransactionOutcome,
gas_used: U256,
logs: Vec<LogEntry>
) -> Self
Create a new receipt.
Trait Implementations
impl Debug for Receipt
[src]
impl Debug for Receipt
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Receipt
[src]
impl Clone for Receipt
fn clone(&self) -> Receipt
[src]
fn clone(&self) -> Receipt
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for Receipt
[src]
impl PartialEq for Receipt
fn eq(&self, other: &Receipt) -> bool
[src]
fn eq(&self, other: &Receipt) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Receipt) -> bool
[src]
fn ne(&self, other: &Receipt) -> bool
This method tests for !=
.
impl Eq for Receipt
[src]
impl Eq for Receipt
impl Encodable for Receipt
[src]
impl Encodable for Receipt
fn rlp_append(&self, s: &mut RlpStream)
[src]
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
fn rlp_bytes(&self) -> ElasticArray1024<u8>
[src]
fn rlp_bytes(&self) -> ElasticArray1024<u8>
Get rlp-encoded bytes for this instance
impl Decodable for Receipt
[src]
impl Decodable for Receipt
fn decode(rlp: &Rlp) -> Result<Self, DecoderError>
[src]
fn decode(rlp: &Rlp) -> Result<Self, DecoderError>
Decode a value from RLP bytes
impl HeapSizeOf for Receipt
[src]
impl HeapSizeOf for Receipt
fn heap_size_of_children(&self) -> usize
[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:: measures, more or less); that space is handled by the implementation of HeapSizeOf for Box below. Read more