pub struct ApiRequest {
pub jsonrpc: &'static str,
pub id: Wrapping<usize>,
pub method: String,
pub params: HashMap<String, Value>,
}
Expand description
Generic request struct is serialized into the JSON body
Fields§
§jsonrpc: &'static str
§id: Wrapping<usize>
§method: String
§params: HashMap<String, Value>
Implementations§
Source§impl ApiRequest
impl ApiRequest
Trait Implementations§
Source§impl Clone for ApiRequest
impl Clone for ApiRequest
Source§fn clone(&self) -> ApiRequest
fn clone(&self) -> ApiRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ApiRequest
impl Debug for ApiRequest
Auto Trait Implementations§
impl Freeze for ApiRequest
impl RefUnwindSafe for ApiRequest
impl Send for ApiRequest
impl Sync for ApiRequest
impl Unpin for ApiRequest
impl UnwindSafe for ApiRequest
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