Struct clightningrpc::Request[][src]

pub struct Request {
    pub method: String,
    pub params: Json,
    pub id: Json,
    pub jsonrpc: Option<String>,
}

A JSONRPC request object

Fields

The name of the RPC call

Parameters to the RPC call

Identifier for this Request, which should appear in the response

jsonrpc field, MUST be "2.0"

Trait Implementations

impl Debug for Request
[src]

Formats the value using the given formatter. Read more

impl Clone for Request
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Request
[src]

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

This method tests for !=.

Auto Trait Implementations

impl Send for Request

impl Sync for Request