Struct jsonrpc::Request [] [src]

pub struct Request {
    pub method: String,
    pub params: Vec<Value>,
    pub id: Value,
}

A JSONRPC request object

Fields

method: String

The name of the RPC call

params: Vec<Value>

Parameters to the RPC call

id: Value

Identifier for this Request, which should appear in the response

Trait Implementations

impl PartialEq for Request
[src]

fn eq(&self, __arg_0: &Request) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, __arg_0: &Request) -> bool

This method tests for !=.

impl Debug for Request
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Request
[src]

fn clone(&self) -> Request

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 Request
[src]

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.

impl Deserialize for Request
[src]

fn deserialize<D>(deserializer: &mut D) -> Result<Request, D::Error> where D: Deserializer

Deserialize this value given this Deserializer.