pub struct FrameReceiptPayload<Log = Log> {
pub cumulative_gas_used: u64,
pub payer: Address,
pub frame_receipts: Vec<FrameReceipt<Log>>,
}Expand description
EIP-8141 receipt payload.
Fields§
§cumulative_gas_used: u64Cumulative gas used by the block after this transaction.
payer: AddressAccount that paid the transaction fee.
frame_receipts: Vec<FrameReceipt<Log>>Per-frame receipt entries.
Implementations§
Source§impl<Log> FrameReceiptPayload<Log>
impl<Log> FrameReceiptPayload<Log>
Sourcepub fn map_logs<U>(self, f: impl FnMut(Log) -> U) -> FrameReceiptPayload<U>
pub fn map_logs<U>(self, f: impl FnMut(Log) -> U) -> FrameReceiptPayload<U>
Maps the log type in every frame receipt.
Trait Implementations§
Source§impl<'arbitrary, Log> Arbitrary<'arbitrary> for FrameReceiptPayload<Log>where
Log: Arbitrary<'arbitrary>,
impl<'arbitrary, Log> Arbitrary<'arbitrary> for FrameReceiptPayload<Log>where
Log: Arbitrary<'arbitrary>,
Source§fn arbitrary(
u: &mut Unstructured<'arbitrary>,
) -> Result<FrameReceiptPayload<Log>, Error>
fn arbitrary( u: &mut Unstructured<'arbitrary>, ) -> Result<FrameReceiptPayload<Log>, Error>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(
u: Unstructured<'arbitrary>,
) -> Result<FrameReceiptPayload<Log>, Error>
fn arbitrary_take_rest( u: Unstructured<'arbitrary>, ) -> Result<FrameReceiptPayload<Log>, Error>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<Log> BorshDeserialize for FrameReceiptPayload<Log>where
Log: BorshDeserialize,
impl<Log> BorshDeserialize for FrameReceiptPayload<Log>where
Log: BorshDeserialize,
fn deserialize_reader<__R>(
reader: &mut __R,
) -> Result<FrameReceiptPayload<Log>, Error>where
__R: Read,
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl<Log> BorshSerialize for FrameReceiptPayload<Log>where
Log: BorshSerialize,
impl<Log> BorshSerialize for FrameReceiptPayload<Log>where
Log: BorshSerialize,
Source§impl<Log> Clone for FrameReceiptPayload<Log>where
Log: Clone,
impl<Log> Clone for FrameReceiptPayload<Log>where
Log: Clone,
Source§fn clone(&self) -> FrameReceiptPayload<Log>
fn clone(&self) -> FrameReceiptPayload<Log>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Log> Debug for FrameReceiptPayload<Log>where
Log: Debug,
impl<Log> Debug for FrameReceiptPayload<Log>where
Log: Debug,
Source§impl<Log> Decodable for FrameReceiptPayload<Log>where
Log: Decodable,
impl<Log> Decodable for FrameReceiptPayload<Log>where
Log: Decodable,
Source§impl<Log> Default for FrameReceiptPayload<Log>where
Log: Default,
impl<Log> Default for FrameReceiptPayload<Log>where
Log: Default,
Source§fn default() -> FrameReceiptPayload<Log>
fn default() -> FrameReceiptPayload<Log>
Returns the “default value” for a type. Read more
Source§impl<'de, Log> Deserialize<'de> for FrameReceiptPayload<Log>where
Log: Deserialize<'de>,
impl<'de, Log> Deserialize<'de> for FrameReceiptPayload<Log>where
Log: Deserialize<'de>,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameReceiptPayload<Log>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<FrameReceiptPayload<Log>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Log> Encodable for FrameReceiptPayload<Log>where
Log: Encodable,
impl<Log> Encodable for FrameReceiptPayload<Log>where
Log: Encodable,
impl<Log> Eq for FrameReceiptPayload<Log>where
Log: Eq,
Source§impl<Log> Hash for FrameReceiptPayload<Log>where
Log: Hash,
impl<Log> Hash for FrameReceiptPayload<Log>where
Log: Hash,
Source§impl<Log> PartialEq for FrameReceiptPayload<Log>where
Log: PartialEq,
impl<Log> PartialEq for FrameReceiptPayload<Log>where
Log: PartialEq,
Source§impl<Log> Serialize for FrameReceiptPayload<Log>where
Log: Serialize,
impl<Log> Serialize for FrameReceiptPayload<Log>where
Log: Serialize,
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
impl<Log> StructuralPartialEq for FrameReceiptPayload<Log>where
Log: PartialEq,
Auto Trait Implementations§
impl<Log> Freeze for FrameReceiptPayload<Log>
impl<Log> RefUnwindSafe for FrameReceiptPayload<Log>
impl<Log> Send for FrameReceiptPayload<Log>
impl<Log> Sync for FrameReceiptPayload<Log>
impl<Log> Unpin for FrameReceiptPayload<Log>
impl<Log> UnsafeUnpin for FrameReceiptPayload<Log>
impl<Log> UnwindSafe for FrameReceiptPayload<Log>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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: 56 bytes