pub trait FromParams: Sealed + Send + Sized + 'static {
    // Required method
    fn from_params(params: Option<Value>) -> Result<Self>;
}
Expand description

A trait implemented by all JSON-RPC method parameters.

Required Methods§

source

fn from_params(params: Option<Value>) -> Result<Self>

Attempts to deserialize Self from the params value extracted from Request.

Implementations on Foreign Types§

source§

impl<P: DeserializeOwned + Send + 'static> FromParams for (P,)

Deserialize required JSON-RPC parameters.

source§

fn from_params(params: Option<Value>) -> Result<Self>

source§

impl FromParams for ()

Deserialize non-existent JSON-RPC parameters.

source§

fn from_params(params: Option<Value>) -> Result<Self>

Implementors§