pub struct SlimReceipt {
pub tx_type: TxType,
pub status: Eip658Value,
pub cumulative_gas_used: u64,
pub logs: Vec<Log>,
}Expand description
A slim execution receipt as stored in an ERE file.
Per the spec, the slim form is the 4-element RLP list
[tx-type, post-state-or-status, cumulative-gas, logs] with no bloom filter (the bloom is
recomputable from the logs). This is a thin wrapper over alloy’s field types: [Eip658Value]
captures both the pre-Byzantium 32-byte post-state root and the post-Byzantium boolean status,
so a single type decodes receipts across every fork.
Fields§
§tx_type: TxTypeTransaction type (EIP-2718).
status: Eip658ValuePost-state root (pre-Byzantium) or success status (post-Byzantium).
cumulative_gas_used: u64Cumulative gas used in the block up to and including this transaction.
logs: Vec<Log>Logs emitted by the transaction.
Trait Implementations§
Source§impl Clone for SlimReceipt
impl Clone for SlimReceipt
Source§fn clone(&self) -> SlimReceipt
fn clone(&self) -> SlimReceipt
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SlimReceipt
impl Debug for SlimReceipt
Source§impl Decodable for SlimReceipt
impl Decodable for SlimReceipt
Source§impl Encodable for SlimReceipt
impl Encodable for SlimReceipt
impl Eq for SlimReceipt
Source§impl PartialEq for SlimReceipt
impl PartialEq for SlimReceipt
Source§fn eq(&self, other: &SlimReceipt) -> bool
fn eq(&self, other: &SlimReceipt) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlimReceipt
Auto Trait Implementations§
impl Freeze for SlimReceipt
impl RefUnwindSafe for SlimReceipt
impl Send for SlimReceipt
impl Sync for SlimReceipt
impl Unpin for SlimReceipt
impl UnsafeUnpin for SlimReceipt
impl UnwindSafe for SlimReceipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 72 bytes