pub struct Request {
pub method: String,
pub params: Value,
pub id: Value,
pub jsonrpc: String,
}
Expand description
Represents the JSON-RPC request object.
Fields§
§method: String
§params: Value
§id: Value
§jsonrpc: String
Implementations§
Trait Implementations§
Source§impl<S> Service<Request> for Client<S>
impl<S> Service<Request> for Client<S>
Source§type Error = Error<ConnectionError<<S as Service<Request<Body>>>::Error>>
type Error = Error<ConnectionError<<S as Service<Request<Body>>>::Error>>
Errors produced by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<Client<S> as Service<Request>>::Response, <Client<S> as Service<Request>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<Client<S> as Service<Request>>::Response, <Client<S> as Service<Request>>::Error>> + Send>>
The future response value.
impl StructuralPartialEq for Request
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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