Struct tokio_jsonrpc::message::Request
[−]
[src]
pub struct Request {
pub method: String,
pub params: Option<Value>,
pub id: Value,
// some fields omitted
}An RPC request.
Fields
method: String
params: Option<Value>
id: Value
Methods
impl Request[src]
fn reply(&self, reply: Value) -> Message
Answer the request with a (positive) reply.
The ID is taken from the request.
fn error(&self, error: RpcError) -> Message
Answer the request with an error.
Trait Implementations
impl Debug for Request[src]
impl Clone for Request[src]
fn clone(&self) -> Request
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