Struct common_types::receipt::LocalizedReceipt
source · [−]pub struct LocalizedReceipt {Show 14 fields
pub transaction_type: TypedTxId,
pub transaction_hash: H256,
pub transaction_index: usize,
pub block_hash: H256,
pub block_number: BlockNumber,
pub cumulative_gas_used: U256,
pub gas_used: U256,
pub contract_address: Option<Address>,
pub logs: Vec<LocalizedLogEntry>,
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: TypedTxId
Transaction type
transaction_hash: H256
Transaction hash.
transaction_index: usize
Transaction index.
block_hash: H256
Block hash.
block_number: BlockNumber
Block number.
cumulative_gas_used: U256
The total gas used in the block following execution of the transaction.
gas_used: U256
The 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<LocalizedLogEntry>
Logs
log_bloom: Bloom
Logs bloom
outcome: TransactionOutcome
Transaction outcome.
to: Option<H160>
Receiver address
NOTE: It is an Option because only Action::Call
transactions has a receiver address
from: H160
Sender
effective_gas_price: U256
Effective gas price
Trait Implementations
sourceimpl Clone for LocalizedReceipt
impl Clone for LocalizedReceipt
sourcefn clone(&self) -> LocalizedReceipt
fn clone(&self) -> LocalizedReceipt
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 LocalizedReceipt
impl Debug for LocalizedReceipt
sourceimpl PartialEq<LocalizedReceipt> for LocalizedReceipt
impl PartialEq<LocalizedReceipt> for LocalizedReceipt
sourcefn eq(&self, other: &LocalizedReceipt) -> bool
fn eq(&self, other: &LocalizedReceipt) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LocalizedReceipt) -> bool
fn ne(&self, other: &LocalizedReceipt) -> bool
This method tests for !=
.
impl StructuralPartialEq for LocalizedReceipt
Auto Trait Implementations
impl RefUnwindSafe for LocalizedReceipt
impl Send for LocalizedReceipt
impl Sync for LocalizedReceipt
impl Unpin for LocalizedReceipt
impl UnwindSafe for LocalizedReceipt
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