pub struct OptimismAttributesWithParent {
pub attributes: OptimismPayloadAttributes,
pub parent: L2BlockInfo,
pub is_last_in_span: bool,
}
Expand description
Optimism Payload Attributes with parent block reference.
Fields§
§attributes: OptimismPayloadAttributes
The payload attributes.
parent: L2BlockInfo
The parent block reference.
is_last_in_span: bool
Whether the current batch is the last in its span.
Implementations§
source§impl OptimismAttributesWithParent
impl OptimismAttributesWithParent
sourcepub const fn new(
attributes: OptimismPayloadAttributes,
parent: L2BlockInfo,
is_last_in_span: bool,
) -> Self
pub const fn new( attributes: OptimismPayloadAttributes, parent: L2BlockInfo, is_last_in_span: bool, ) -> Self
Create a new OptimismAttributesWithParent instance.
sourcepub const fn attributes(&self) -> &OptimismPayloadAttributes
pub const fn attributes(&self) -> &OptimismPayloadAttributes
Returns the payload attributes.
sourcepub const fn is_last_in_span(&self) -> bool
pub const fn is_last_in_span(&self) -> bool
Returns whether the current batch is the last in its span.
Trait Implementations§
source§impl Clone for OptimismAttributesWithParent
impl Clone for OptimismAttributesWithParent
source§fn clone(&self) -> OptimismAttributesWithParent
fn clone(&self) -> OptimismAttributesWithParent
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 OptimismAttributesWithParent
impl Debug for OptimismAttributesWithParent
source§impl<'de> Deserialize<'de> for OptimismAttributesWithParent
impl<'de> Deserialize<'de> for OptimismAttributesWithParent
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 PartialEq for OptimismAttributesWithParent
impl PartialEq for OptimismAttributesWithParent
source§fn eq(&self, other: &OptimismAttributesWithParent) -> bool
fn eq(&self, other: &OptimismAttributesWithParent) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for OptimismAttributesWithParent
Auto Trait Implementations§
impl Freeze for OptimismAttributesWithParent
impl RefUnwindSafe for OptimismAttributesWithParent
impl Send for OptimismAttributesWithParent
impl Sync for OptimismAttributesWithParent
impl Unpin for OptimismAttributesWithParent
impl UnwindSafe for OptimismAttributesWithParent
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
)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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: 312 bytes