Struct jsonrpc::jsonrpc_common::RequestError
[−]
[src]
pub struct RequestError { pub code: i64, pub message: String, pub data: Option<Value>, }
Fields
code: i64
message: String
data: Option<Value>
Methods
impl RequestError
[src]
fn new(code: i64, message: String) -> RequestError
Trait Implementations
impl Debug for RequestError
[src]
impl PartialEq for RequestError
[src]
fn eq(&self, __arg_0: &RequestError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RequestError) -> bool
This method tests for !=
.
impl Clone for RequestError
[src]
fn clone(&self) -> RequestError
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 Serialize for RequestError
[src]
fn serialize<S>(&self, serializer: &mut S) -> Result<(), S::Error> where
S: Serializer,
S: Serializer,
Serializes this value into this serializer.
impl Deserialize for RequestError
[src]
fn deserialize<DE>(deserializer: &mut DE) -> Result<Self, DE::Error> where
DE: Deserializer,
DE: Deserializer,
Deserialize this value given this Deserializer
.