Struct jsonrpc_core::request::MethodCall [] [src]

pub struct MethodCall {
    pub jsonrpc: Version,
    pub method: String,
    pub params: Option<Params>,
    pub id: Id,
}

Represents jsonrpc request which is a method call.

Fields

A String specifying the version of the JSON-RPC protocol. MUST be exactly "2.0".

A String containing the name of the method to be invoked.

A Structured value that holds the parameter values to be used during the invocation of the method. This member MAY be omitted.

An identifier established by the Client that MUST contain a String, Number, or NULL value if included. If it is not included it is assumed to be a notification.

Trait Implementations

impl Debug for MethodCall
[src]

Formats the value using the given formatter.

impl PartialEq for MethodCall
[src]

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

This method tests for !=.