Struct jsonrpc::jsonrpc_response::Response [] [src]

pub struct Response {
    pub id: Id,
    pub result_or_error: ResponseResult,
}

A JSON RPC response, version 2.0. Only one of 'result' or 'error' is defined.

Fields

Methods

impl Response
[src]

Trait Implementations

impl Debug for Response
[src]

Formats the value using the given formatter.

impl PartialEq for Response
[src]

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

This method tests for !=.

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Serialize for Response
[src]

Serializes this value into this serializer.

impl Deserialize for Response
[src]

Deserialize this value given this Deserializer.