pub struct MaybeCancunPayloadFields { /* private fields */ }
Expand description
A container type for CancunPayloadFields that may or may not be present.
Implementations§
source§impl MaybeCancunPayloadFields
impl MaybeCancunPayloadFields
sourcepub fn into_inner(self) -> Option<CancunPayloadFields>
pub fn into_inner(self) -> Option<CancunPayloadFields>
Returns a new MaybeCancunPayloadFields
with the given cancun fields.
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.
sourcepub const fn as_ref(&self) -> Option<&CancunPayloadFields>
pub const fn as_ref(&self) -> Option<&CancunPayloadFields>
Returns a reference to the inner fields.
Trait Implementations§
source§impl Clone for MaybeCancunPayloadFields
impl Clone for MaybeCancunPayloadFields
source§fn clone(&self) -> MaybeCancunPayloadFields
fn clone(&self) -> MaybeCancunPayloadFields
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 MaybeCancunPayloadFields
impl Debug for MaybeCancunPayloadFields
source§impl Default for MaybeCancunPayloadFields
impl Default for MaybeCancunPayloadFields
source§fn default() -> MaybeCancunPayloadFields
fn default() -> MaybeCancunPayloadFields
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MaybeCancunPayloadFields
impl<'de> Deserialize<'de> for MaybeCancunPayloadFields
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 From<CancunPayloadFields> for MaybeCancunPayloadFields
impl From<CancunPayloadFields> for MaybeCancunPayloadFields
source§fn from(fields: CancunPayloadFields) -> Self
fn from(fields: CancunPayloadFields) -> Self
Converts to this type from the input type.
source§impl From<Option<CancunPayloadFields>> for MaybeCancunPayloadFields
impl From<Option<CancunPayloadFields>> for MaybeCancunPayloadFields
source§fn from(fields: Option<CancunPayloadFields>) -> Self
fn from(fields: Option<CancunPayloadFields>) -> Self
Converts to this type from the input type.
source§impl Hash for MaybeCancunPayloadFields
impl Hash for MaybeCancunPayloadFields
source§impl PartialEq for MaybeCancunPayloadFields
impl PartialEq for MaybeCancunPayloadFields
source§impl Serialize for MaybeCancunPayloadFields
impl Serialize for MaybeCancunPayloadFields
impl Eq for MaybeCancunPayloadFields
impl StructuralPartialEq for MaybeCancunPayloadFields
Auto Trait Implementations§
impl Freeze for MaybeCancunPayloadFields
impl RefUnwindSafe for MaybeCancunPayloadFields
impl Send for MaybeCancunPayloadFields
impl Sync for MaybeCancunPayloadFields
impl Unpin for MaybeCancunPayloadFields
impl UnwindSafe for MaybeCancunPayloadFields
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