pub struct Request<'a> {
pub method: &'a str,
pub params: Option<&'a 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: Option<&'a 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> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more