Struct exonum_jsonrpc::Response[][src]

pub struct Response {
    pub result: Option<Value>,
    pub error: Option<Value>,
    pub id: Value,
}

A JSONRPC response object

Fields

The Object that was returned by the invoked method. This must be null in case there was a error invoking the method

An Error object if there was an error invoking the method. It must be null if there was no error

This must be the same id as the request it is responding to

Methods

impl Response
[src]

Extract the result from a response

Extract the result from a response, consuming the response

Return the RPC error, if there was one, but do not check the result

Returns whether or not the result field is empty

Trait Implementations

impl Clone for Response
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Response
[src]

Formats the value using the given formatter. Read more

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 !=.

Auto Trait Implementations

impl Send for Response

impl Sync for Response