Enum jsonrpc_lite::JsonRpc [] [src]

pub enum JsonRpc {
    Request(Request),
    Notification(Notification),
    Success(Success),
    Error(Error),
}

JSON-RPC 2.0 Request object and Response object JSON-RPC 2.0 Specification.

Variants

Request object

Notification object

Success Response

Error Response

Methods

impl JsonRpc
[src]

Creates a JSON-RPC 2.0 request object without params

Creates a JSON-RPC 2.0 request object with params

Creates a JSON-RPC 2.0 notification object without params

Creates a JSON-RPC 2.0 notification object with params

Creates a JSON-RPC 2.0 success response object

Creates a JSON-RPC 2.0 error response object

Trait Implementations

impl Clone for JsonRpc
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for JsonRpc
[src]

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

This method tests for !=.

impl Debug for JsonRpc
[src]

Formats the value using the given formatter.