pub struct ExecutionPayloadSidecar { /* private fields */ }
Expand description
Container type for all available additional newPayload
request parameters that are not present
in the ExecutionPayload
object itself.
Implementations§
Source§impl ExecutionPayloadSidecar
impl ExecutionPayloadSidecar
Sourcepub fn v3(cancun: CancunPayloadFields) -> Self
pub fn v3(cancun: CancunPayloadFields) -> Self
Creates a new instance for cancun with the cancun fields for engine_newPayloadV3
Sourcepub fn v4(cancun: CancunPayloadFields, requests: Requests) -> Self
pub fn v4(cancun: CancunPayloadFields, requests: Requests) -> Self
Creates a new instance post prague for engine_newPayloadV4
Sourcepub const fn cancun(&self) -> Option<&CancunPayloadFields>
pub const fn cancun(&self) -> Option<&CancunPayloadFields>
Returns a reference to the CancunPayloadFields
.
Sourcepub fn parent_beacon_block_root(&self) -> Option<B256>
pub fn parent_beacon_block_root(&self) -> Option<B256>
Returns the parent beacon block root, if any.
Sourcepub fn versioned_hashes(&self) -> Option<&Vec<B256>>
pub fn versioned_hashes(&self) -> Option<&Vec<B256>>
Returns the blob versioned hashes, if any.
Trait Implementations§
Source§impl Clone for ExecutionPayloadSidecar
impl Clone for ExecutionPayloadSidecar
Source§fn clone(&self) -> ExecutionPayloadSidecar
fn clone(&self) -> ExecutionPayloadSidecar
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 ExecutionPayloadSidecar
impl Debug for ExecutionPayloadSidecar
Source§impl Default for ExecutionPayloadSidecar
impl Default for ExecutionPayloadSidecar
Source§fn default() -> ExecutionPayloadSidecar
fn default() -> ExecutionPayloadSidecar
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExecutionPayloadSidecar
impl<'de> Deserialize<'de> for ExecutionPayloadSidecar
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
Auto Trait Implementations§
impl Freeze for ExecutionPayloadSidecar
impl RefUnwindSafe for ExecutionPayloadSidecar
impl Send for ExecutionPayloadSidecar
impl Sync for ExecutionPayloadSidecar
impl Unpin for ExecutionPayloadSidecar
impl UnwindSafe for ExecutionPayloadSidecar
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<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