Struct common_types::receipt::RichReceipt
source · [−]pub struct RichReceipt {
pub transaction_type: TypedTxId,
pub transaction_hash: H256,
pub transaction_index: usize,
pub cumulative_gas_used: U256,
pub gas_used: U256,
pub contract_address: Option<Address>,
pub logs: Vec<LogEntry>,
pub log_bloom: Bloom,
pub outcome: TransactionOutcome,
pub to: Option<H160>,
pub from: H160,
pub effective_gas_price: U256,
}Expand description
Receipt with additional info.
Fields
transaction_type: TypedTxIdTransaction type
transaction_hash: H256Transaction hash.
transaction_index: usizeTransaction index.
cumulative_gas_used: U256The total gas used in the block following execution of the transaction.
gas_used: U256The gas used in the execution of the transaction. Note the difference of meaning to Receipt::gas_used.
contract_address: Option<Address>Contract address.
NOTE: It is an Option because only Action::Create transactions has a contract address
logs: Vec<LogEntry>Logs
log_bloom: BloomLogs bloom
outcome: TransactionOutcomeTransaction outcome.
to: Option<H160>Receiver address
NOTE: It is an Option because only Action::Call transactions has a receiver address
from: H160Sender
effective_gas_price: U256Effective gas price
Trait Implementations
sourceimpl Clone for RichReceipt
impl Clone for RichReceipt
sourcefn clone(&self) -> RichReceipt
fn clone(&self) -> RichReceipt
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RichReceipt
impl Debug for RichReceipt
sourceimpl PartialEq<RichReceipt> for RichReceipt
impl PartialEq<RichReceipt> for RichReceipt
sourcefn eq(&self, other: &RichReceipt) -> bool
fn eq(&self, other: &RichReceipt) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RichReceipt) -> bool
fn ne(&self, other: &RichReceipt) -> bool
This method tests for !=.
impl StructuralPartialEq for RichReceipt
Auto Trait Implementations
impl RefUnwindSafe for RichReceipt
impl Send for RichReceipt
impl Sync for RichReceipt
impl Unpin for RichReceipt
impl UnwindSafe for RichReceipt
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more