pub struct TestingBuildBlockRequestV1 {
pub parent_block_hash: B256,
pub payload_attributes: PayloadAttributes,
pub transactions: Vec<Bytes>,
pub extra_data: Option<Bytes>,
}Expand description
Request payload for testing_buildBlockV1.
Fields§
§parent_block_hash: B256Parent block hash of the block to build.
payload_attributes: PayloadAttributesPayload attributes.
transactions: Vec<Bytes>Raw signed transactions to force-include in order.
extra_data: Option<Bytes>Optional extra data for the block header.
Implementations§
Source§impl TestingBuildBlockRequestV1
impl TestingBuildBlockRequestV1
Sourcepub fn into_params(self) -> (B256, PayloadAttributes, Vec<Bytes>, Option<Bytes>)
pub fn into_params(self) -> (B256, PayloadAttributes, Vec<Bytes>, Option<Bytes>)
Consumes the request and returns the positional JSON-RPC parameters.
Trait Implementations§
Source§impl Clone for TestingBuildBlockRequestV1
impl Clone for TestingBuildBlockRequestV1
Source§fn clone(&self) -> TestingBuildBlockRequestV1
fn clone(&self) -> TestingBuildBlockRequestV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TestingBuildBlockRequestV1
impl Debug for TestingBuildBlockRequestV1
Source§impl Default for TestingBuildBlockRequestV1
impl Default for TestingBuildBlockRequestV1
Source§fn default() -> TestingBuildBlockRequestV1
fn default() -> TestingBuildBlockRequestV1
Source§impl<'de> Deserialize<'de> for TestingBuildBlockRequestV1
Available on crate feature serde only.Deserializes from either the camelCase object form produced by serde::Serialize or the
positional JSON-RPC params form defined by the execution-apis spec.
impl<'de> Deserialize<'de> for TestingBuildBlockRequestV1
serde only.Deserializes from either the camelCase object form produced by serde::Serialize or the
positional JSON-RPC params form defined by the execution-apis spec.
transactions: null and omitted transactions are both represented as an empty transaction
vector because this type stores transactions as Vec<Bytes>.
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>,
impl Eq for TestingBuildBlockRequestV1
Source§impl Serialize for TestingBuildBlockRequestV1
Available on crate feature serde only.
impl Serialize for TestingBuildBlockRequestV1
serde only.impl StructuralPartialEq for TestingBuildBlockRequestV1
Auto Trait Implementations§
impl !Freeze for TestingBuildBlockRequestV1
impl RefUnwindSafe for TestingBuildBlockRequestV1
impl Send for TestingBuildBlockRequestV1
impl Sync for TestingBuildBlockRequestV1
impl Unpin for TestingBuildBlockRequestV1
impl UnsafeUnpin for TestingBuildBlockRequestV1
impl UnwindSafe for TestingBuildBlockRequestV1
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
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
Source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
Source§fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ
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: 240 bytes