#[non_exhaustive]pub struct GetBlockExecutionOutcomeParams {
pub block_id: BlockId,
pub count: Option<U64>,
}Expand description
Parameters for reth_getBlockExecutionOutcome.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.block_id: BlockIdThe block identifier.
count: Option<U64>Optional number of blocks to include.
Implementations§
Source§impl GetBlockExecutionOutcomeParams
impl GetBlockExecutionOutcomeParams
Sourcepub const fn new(block_id: BlockId) -> Self
pub const fn new(block_id: BlockId) -> Self
Creates new GetBlockExecutionOutcomeParams for the given block.
Sourcepub fn with_count(self, count: impl Into<U64>) -> Self
pub fn with_count(self, count: impl Into<U64>) -> Self
Sets the number of blocks to include.
Trait Implementations§
Source§impl Clone for GetBlockExecutionOutcomeParams
impl Clone for GetBlockExecutionOutcomeParams
Source§fn clone(&self) -> GetBlockExecutionOutcomeParams
fn clone(&self) -> GetBlockExecutionOutcomeParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GetBlockExecutionOutcomeParams
Source§impl<'de> Deserialize<'de> for GetBlockExecutionOutcomeParams
impl<'de> Deserialize<'de> for GetBlockExecutionOutcomeParams
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<BlockId> for GetBlockExecutionOutcomeParams
impl From<BlockId> for GetBlockExecutionOutcomeParams
Auto Trait Implementations§
impl Freeze for GetBlockExecutionOutcomeParams
impl RefUnwindSafe for GetBlockExecutionOutcomeParams
impl Send for GetBlockExecutionOutcomeParams
impl Sync for GetBlockExecutionOutcomeParams
impl Unpin for GetBlockExecutionOutcomeParams
impl UnsafeUnpin for GetBlockExecutionOutcomeParams
impl UnwindSafe for GetBlockExecutionOutcomeParams
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
impl<'de, T> BorrowedRpcObject<'de> for 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<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> ⓘ
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 moreimpl<'de, T> RpcBorrow<'de> for T
impl<T> RpcObject for T
impl<T> RpcRecv for T
impl<T> RpcSend for T
Source§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: 56 bytes