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 Receiptpub fn new(
outcome: TransactionOutcome,
gas_used: U256,
logs: Vec<LogEntry>
) -> Self[src]
pub fn new(
outcome: TransactionOutcome,
gas_used: U256,
logs: Vec<LogEntry>
) -> SelfCreate a new receipt.
Trait Implementations
impl Debug for Receipt[src]
impl Debug for Receiptfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Receipt[src]
impl Clone for Receiptfn clone(&self) -> Receipt[src]
fn clone(&self) -> ReceiptReturns 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 Receiptfn eq(&self, other: &Receipt) -> bool[src]
fn eq(&self, other: &Receipt) -> boolThis 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) -> boolThis method tests for !=.
impl Eq for Receipt[src]
impl Eq for Receiptimpl Encodable for Receipt[src]
impl Encodable for Receiptfn 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 Receiptfn 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 Receiptfn heap_size_of_children(&self) -> usize[src]
fn heap_size_of_children(&self) -> usizeMeasure 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