pub struct Request<'a> {
pub method: &'a str,
pub params: &'a [Box<RawValue>],
pub id: Value,
pub jsonrpc: Option<&'a str>,
}
Expand description
A JSONRPC request object
Fields
method: &'a str
The name of the RPC call
params: &'a [Box<RawValue>]
Parameters to the RPC call
id: Value
Identifier for this Request, which should appear in the response
jsonrpc: Option<&'a str>
jsonrpc field, MUST be “2.0”
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more