pub struct ExecutionPayloadV2 {
pub payload_inner: ExecutionPayloadV1,
pub withdrawals: Vec<Withdrawal>,
}
Expand description
This structure maps on the ExecutionPayloadV2 structure of the beacon chain spec.
Fields§
§payload_inner: ExecutionPayloadV1
Inner V1 payload
withdrawals: Vec<Withdrawal>
Array of Withdrawal
enabled with V2
See https://github.com/ethereum/execution-apis/blob/6709c2a795b707202e93c4f2867fa0bf2640a84f/src/engine/shanghai.md#executionpayloadv2
Implementations§
Trait Implementations§
source§impl Clone for ExecutionPayloadV2
impl Clone for ExecutionPayloadV2
source§fn clone(&self) -> ExecutionPayloadV2
fn clone(&self) -> ExecutionPayloadV2
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecutionPayloadV2
impl Debug for ExecutionPayloadV2
source§impl Decode for ExecutionPayloadV2
Available on crate feature ssz
only.
impl Decode for ExecutionPayloadV2
Available on crate feature
ssz
only.source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moresource§fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
fn from_ssz_bytes(bytes: &[u8]) -> Result<Self, DecodeError>
source§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
source§impl<'de> Deserialize<'de> for ExecutionPayloadV2
impl<'de> Deserialize<'de> for ExecutionPayloadV2
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
source§impl Encode for ExecutionPayloadV2
Available on crate feature ssz
only.
impl Encode for ExecutionPayloadV2
Available on crate feature
ssz
only.source§fn is_ssz_fixed_len() -> bool
fn is_ssz_fixed_len() -> bool
Returns
true
if this object has a fixed-length. Read moresource§fn ssz_bytes_len(&self) -> usize
fn ssz_bytes_len(&self) -> usize
Returns the size (in bytes) when
self
is serialized. Read moresource§fn ssz_fixed_len() -> usize
fn ssz_fixed_len() -> usize
The number of bytes this object occupies in the fixed-length portion of the SSZ bytes. Read more
source§impl From<ExecutionPayloadV2> for ExecutionPayload
impl From<ExecutionPayloadV2> for ExecutionPayload
source§fn from(payload: ExecutionPayloadV2) -> Self
fn from(payload: ExecutionPayloadV2) -> Self
Converts to this type from the input type.
source§impl PartialEq for ExecutionPayloadV2
impl PartialEq for ExecutionPayloadV2
source§impl Serialize for ExecutionPayloadV2
impl Serialize for ExecutionPayloadV2
impl Eq for ExecutionPayloadV2
impl StructuralPartialEq for ExecutionPayloadV2
Auto Trait Implementations§
impl !Freeze for ExecutionPayloadV2
impl RefUnwindSafe for ExecutionPayloadV2
impl Send for ExecutionPayloadV2
impl Sync for ExecutionPayloadV2
impl Unpin for ExecutionPayloadV2
impl UnwindSafe for ExecutionPayloadV2
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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 more