pub struct WsRequest {
pub jsonrpc: String,
pub id: Value,
pub method: String,
pub params: Option<Value>,
}Expand description
WebSocket request structure for Deribit API
Fields§
§jsonrpc: StringJSON-RPC version
id: ValueRequest ID for correlation with responses
method: StringAPI method name to call
params: Option<Value>Parameters for the API method
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsRequest
impl<'de> Deserialize<'de> for WsRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for WsRequest
Auto Trait Implementations§
impl Freeze for WsRequest
impl RefUnwindSafe for WsRequest
impl Send for WsRequest
impl Sync for WsRequest
impl Unpin for WsRequest
impl UnwindSafe for WsRequest
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