pub struct WsResponse {
pub jsonrpc: String,
pub id: Option<Value>,
pub result: Option<Value>,
pub error: Option<JsonRpcError>,
}Expand description
WebSocket response structure for Deribit API
Fields§
§jsonrpc: StringJSON-RPC version
id: Option<Value>Request ID for correlation (None for notifications)
result: Option<Value>Result data if the request was successful
error: Option<JsonRpcError>Error information if the request failed
Trait Implementations§
Source§impl Clone for WsResponse
impl Clone for WsResponse
Source§fn clone(&self) -> WsResponse
fn clone(&self) -> WsResponse
Returns a duplicate 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 WsResponse
impl Debug for WsResponse
Source§impl<'de> Deserialize<'de> for WsResponse
impl<'de> Deserialize<'de> for WsResponse
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
Source§impl Display for WsResponse
impl Display for WsResponse
Source§impl PartialEq for WsResponse
impl PartialEq for WsResponse
Source§impl Serialize for WsResponse
impl Serialize for WsResponse
impl StructuralPartialEq for WsResponse
Auto Trait Implementations§
impl Freeze for WsResponse
impl RefUnwindSafe for WsResponse
impl Send for WsResponse
impl Sync for WsResponse
impl Unpin for WsResponse
impl UnwindSafe for WsResponse
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