Struct jsonrpc::Request [−][src]
pub struct Request { pub method: String, pub params: Vec<Value>, pub id: Value, pub jsonrpc: Option<String>, }
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
jsonrpc: Option<String>
jsonrpc field, MUST be "2.0"
Trait Implementations
impl Debug for Request
[src]
impl Debug for Request
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Request
[src]
impl Clone for Request
fn clone(&self) -> Request
[src]
fn clone(&self) -> Request
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Request
[src]
impl PartialEq for Request