pub struct Request<'f, T: Serialize> {
pub method: &'f str,
pub params: T,
pub id: u64,
pub jsonrpc: &'f str,
}Expand description
A JSONRPC request object
Fields§
§method: &'f strThe name of the RPC call
params: TParameters to the RPC call
id: u64Identifier for this Request, which should appear in the response
jsonrpc: &'f strjsonrpc field, MUST be “2.0”
Trait Implementations§
impl<'f, T: Serialize> StructuralPartialEq for Request<'f, T>
Auto Trait Implementations§
impl<'f, T> Freeze for Request<'f, T>where
T: Freeze,
impl<'f, T> RefUnwindSafe for Request<'f, T>where
T: RefUnwindSafe,
impl<'f, T> Send for Request<'f, T>where
T: Send,
impl<'f, T> Sync for Request<'f, T>where
T: Sync,
impl<'f, T> Unpin for Request<'f, T>where
T: Unpin,
impl<'f, T> UnwindSafe for Request<'f, T>where
T: UnwindSafe,
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