pub struct JsonRpcRequest {
pub jsonrpc: &'static str,
pub id: JsonRpcId,
pub method: &'static str,
pub params: Vec<Value>,
}
Fields§
§jsonrpc: &'static str
§id: JsonRpcId
§method: &'static str
§params: Vec<Value>
Implementations§
Trait Implementations§
Source§impl Debug for JsonRpcRequest
impl Debug for JsonRpcRequest
Source§impl Deserialize<'static> for JsonRpcRequest
impl Deserialize<'static> for JsonRpcRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<JsonRpcRequest> for Body
impl From<JsonRpcRequest> for Body
Source§fn from(val: JsonRpcRequest) -> Self
fn from(val: JsonRpcRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for JsonRpcRequest
impl RefUnwindSafe for JsonRpcRequest
impl Send for JsonRpcRequest
impl Sync for JsonRpcRequest
impl Unpin for JsonRpcRequest
impl UnwindSafe for JsonRpcRequest
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