Struct jsonrpc::Request
[−]
[src]
pub struct Request { pub method: String, pub params: Vec<Json>, pub id: Json, pub jsonrpc: Option<String>, }
A JSONRPC request object
Fields
method: String
The name of the RPC call
params: Vec<Json>
Parameters to the RPC call
id: Json
Identifier for this Request, which should appear in the response
jsonrpc: Option<String>
jsonrpc field, MUST be "2.0"
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]
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 Deserialize for Request
[src]
fn deserialize<D>(deserializer: &mut D) -> Result<Request, D::Error> where D: Deserializer
Deserialize this value given this Deserializer
.
impl Serialize for Request
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer
Serializes this value into this serializer.