pub struct TransactionReceipt {
pub transaction_hash: H256,
pub transaction_index: Index,
pub block_hash: Option<H256>,
pub block_number: Option<U64>,
pub cumulative_gas_used: U256,
pub gas_used: Option<U256>,
pub contract_address: Option<H160>,
pub logs: Vec<Log>,
pub status: Option<U64>,
pub root: Option<H256>,
pub logs_bloom: H2048,
}
Expand description
“Receipt” of an executed transaction: details of its execution.
Fields§
§transaction_hash: H256
Transaction hash.
transaction_index: Index
Index within the block.
block_hash: Option<H256>
Hash of the block this transaction was included within.
block_number: Option<U64>
Number of the block this transaction was included within.
cumulative_gas_used: U256
Cumulative gas used within the block after this was executed.
gas_used: Option<U256>
Gas used by this transaction alone.
Gas used is None
if the the client is running in light client mode.
contract_address: Option<H160>
Contract address created, or None
if not a deployment.
logs: Vec<Log>
Logs generated within this transaction.
status: Option<U64>
Status: either 1 (success) or 0 (failure).
root: Option<H256>
State root.
logs_bloom: H2048
Logs bloom
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more