pub struct Request<Params: Serialize> {
pub json_rpc: String,
pub method: Method,
pub params: Params,
pub id: RequestId,
}
Expand description
A random.org request holder
Fields§
§json_rpc: String
A json rpc version
method: Method
A name of the method to be invoked
params: Params
A structured value containing the parameters that will be supplied to the method.
id: RequestId
A request identifier that allows the client to match responses to request. The service will return this unchanged in its response.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Params> Freeze for Request<Params>where
Params: Freeze,
impl<Params> RefUnwindSafe for Request<Params>where
Params: RefUnwindSafe,
impl<Params> Send for Request<Params>where
Params: Send,
impl<Params> Sync for Request<Params>where
Params: Sync,
impl<Params> Unpin for Request<Params>where
Params: Unpin,
impl<Params> UnwindSafe for Request<Params>where
Params: 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