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: Deserialize
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 Serialize for Params
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: Serializer
Serialize this value into the given Serde serializer. Read more
impl Deserialize for Params
[src]
fn deserialize<D>(deserializer: D) -> Result<Params, D::Error> where D: Deserializer
Deserialize this value from the given Serde deserializer. Read more