Enum jsonrpc::jsonrpc_response::ResponseResult
[−]
[src]
pub enum ResponseResult { Result(Value), Error(RequestError), }
The result-or-error part of JSON RPC response.
Variants
Result(Value)
Error(RequestError)
Methods
impl ResponseResult
[src]
fn unwrap_result(self) -> Value
fn new_error(id: Id, error: RequestError) -> Response
Trait Implementations
impl Debug for ResponseResult
[src]
impl PartialEq for ResponseResult
[src]
fn eq(&self, __arg_0: &ResponseResult) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ResponseResult) -> bool
This method tests for !=
.
impl Clone for ResponseResult
[src]
fn clone(&self) -> ResponseResult
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<RET, RET_ERROR> From<MethodResult<RET, RET_ERROR>> for ResponseResult where
RET: Serialize,
RET_ERROR: Serialize,
[src]
RET: Serialize,
RET_ERROR: Serialize,
fn from(method_result: MethodResult<RET, RET_ERROR>) -> Self
Performs the conversion.