Enum jsonrpc_core::types::params::Params
[−]
[src]
pub enum Params { Array(Vec<Value>), Map(Map<String, Value>), None, }
Request parameters
Variants
Array(Vec<Value>)
Array of values
Map(Map<String, Value>)
Map of values
None
No parameters
Methods
impl Params
[src]
fn parse<D>(self) -> Result<D, Error> where
D: DeserializeOwned,
D: DeserializeOwned,
Parse incoming Params
into expected types.
Trait Implementations
impl Debug for Params
[src]
impl PartialEq for Params
[src]
fn eq(&self, __arg_0: &Params) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Params) -> bool
This method tests for !=
.
impl Clone for Params
[src]
fn clone(&self) -> Params
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Serialize for Params
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Deserialize<'a> for Params
[src]
fn deserialize<D>(deserializer: D) -> Result<Params, D::Error> where
D: Deserializer<'a>,
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more