pub struct TransactionReceipt {
pub from: Address,
pub to: Option<Address>,
pub contract_address: Option<Address>,
pub gas_used: Uint<256>,
pub cumulative_gas_used: Uint<256>,
pub effective_gas_price: Uint<256>,
pub block_hash: BytesM<32>,
pub block_number: Uint<256>,
pub status: Option<Status>,
pub logs: Vec<Log>,
pub logs_bloom: Bytes,
pub root: Option<BytesM<32>>,
/* private fields */
}
Fields§
§from: Address
From address
to: Option<Address>
To address
contract_address: Option<Address>
Contract address created by this transaction.
gas_used: Uint<256>
Gas used
cumulative_gas_used: Uint<256>
Gas used
effective_gas_price: Uint<256>
§block_hash: BytesM<32>
Block hash
block_number: Uint<256>
Block number
status: Option<Status>
1 for success, 0 for failure.
logs: Vec<Log>
Logs
logs_bloom: Bytes
Logs bloom filter string
root: Option<BytesM<32>>
Only include before the Byzantium upgrade
Trait Implementations§
Source§impl Debug for TransactionReceipt
impl Debug for TransactionReceipt
Source§impl<'de> Deserialize<'de> for TransactionReceipt
impl<'de> Deserialize<'de> for TransactionReceipt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TransactionReceipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TransactionReceipt
impl Serialize for TransactionReceipt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TransactionReceipt
impl RefUnwindSafe for TransactionReceipt
impl Send for TransactionReceipt
impl Sync for TransactionReceipt
impl Unpin for TransactionReceipt
impl UnwindSafe for TransactionReceipt
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more