pub struct GethDebugTracerConfig(pub Value);
Expand description
Configuration of the tracer
This is a simple wrapper around serde_json::Value. with helpers for deserializing tracer configs.
Tuple Fields§
§0: Value
Implementations§
source§impl GethDebugTracerConfig
impl GethDebugTracerConfig
sourcepub fn from_value<T: DeserializeOwned>(self) -> Result<T, Error>
pub fn from_value<T: DeserializeOwned>(self) -> Result<T, Error>
Consumes the config and tries to deserialize it into the given type.
sourcepub fn into_call_config(self) -> Result<CallConfig, Error>
pub fn into_call_config(self) -> Result<CallConfig, Error>
Returns the CallConfig if it is a call config.
sourcepub fn into_flat_call_config(self) -> Result<FlatCallConfig, Error>
pub fn into_flat_call_config(self) -> Result<FlatCallConfig, Error>
Returns the FlatCallConfig if it is a call config.
sourcepub fn into_pre_state_config(self) -> Result<PreStateConfig, Error>
pub fn into_pre_state_config(self) -> Result<PreStateConfig, Error>
Returns the PreStateConfig if it is a prestate config.
Trait Implementations§
source§impl Clone for GethDebugTracerConfig
impl Clone for GethDebugTracerConfig
source§fn clone(&self) -> GethDebugTracerConfig
fn clone(&self) -> GethDebugTracerConfig
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 GethDebugTracerConfig
impl Debug for GethDebugTracerConfig
source§impl Default for GethDebugTracerConfig
impl Default for GethDebugTracerConfig
source§fn default() -> GethDebugTracerConfig
fn default() -> GethDebugTracerConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GethDebugTracerConfig
impl<'de> Deserialize<'de> for GethDebugTracerConfig
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<CallConfig> for GethDebugTracerConfig
impl From<CallConfig> for GethDebugTracerConfig
source§fn from(value: CallConfig) -> Self
fn from(value: CallConfig) -> Self
Converts to this type from the input type.
source§impl From<FlatCallConfig> for GethDebugTracerConfig
impl From<FlatCallConfig> for GethDebugTracerConfig
source§fn from(value: FlatCallConfig) -> Self
fn from(value: FlatCallConfig) -> Self
Converts to this type from the input type.
source§impl From<MuxConfig> for GethDebugTracerConfig
impl From<MuxConfig> for GethDebugTracerConfig
source§impl From<PreStateConfig> for GethDebugTracerConfig
impl From<PreStateConfig> for GethDebugTracerConfig
source§fn from(value: PreStateConfig) -> Self
fn from(value: PreStateConfig) -> Self
Converts to this type from the input type.
source§impl From<Value> for GethDebugTracerConfig
impl From<Value> for GethDebugTracerConfig
source§impl PartialEq for GethDebugTracerConfig
impl PartialEq for GethDebugTracerConfig
source§impl Serialize for GethDebugTracerConfig
impl Serialize for GethDebugTracerConfig
impl Eq for GethDebugTracerConfig
impl StructuralPartialEq for GethDebugTracerConfig
Auto Trait Implementations§
impl Freeze for GethDebugTracerConfig
impl RefUnwindSafe for GethDebugTracerConfig
impl Send for GethDebugTracerConfig
impl Sync for GethDebugTracerConfig
impl Unpin for GethDebugTracerConfig
impl UnwindSafe for GethDebugTracerConfig
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