Struct tokio_jsonrpc::message::Response
[−]
[src]
pub struct Response {
pub result: Result<Value, RpcError>,
pub id: Value,
// some fields omitted
}A response to an RPC.
It is created by the methods on Request.
Fields
result: Result<Value, RpcError>
id: Value
Trait Implementations
impl Debug for Response[src]
impl Clone for Response[src]
fn clone(&self) -> Response
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 PartialEq for Response[src]
fn eq(&self, __arg_0: &Response) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Response) -> bool
This method tests for !=.
impl Serialize for Response[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Response[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more