Struct jsonrpc::error::RpcError [] [src]

pub struct RpcError {
    pub code: i32,
    pub message: String,
    pub data: Option<Json>,
}

A JSONRPC error object

Fields

code: i32

The integer identifier of the error

message: String

A string describing the error

data: Option<Json>

Additional data specific to the error

Trait Implementations

impl PartialEq for RpcError
[src]

fn eq(&self, __arg_0: &RpcError) -> bool

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

fn ne(&self, __arg_0: &RpcError) -> bool

This method tests for !=.

impl Debug for RpcError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for RpcError
[src]

fn clone(&self) -> RpcError

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Deserialize for RpcError
[src]

fn deserialize<D>(deserializer: &mut D) -> Result<RpcError, D::Error> where D: Deserializer

Deserialize this value given this Deserializer.

impl Serialize for RpcError
[src]

fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where S: Serializer

Serializes this value into this serializer.