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> Freeze for Request<'a>
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