Struct WsGetResponse
pub struct WsGetResponse {
pub status: WsStatus,
pub data: IndexMap<String, Value>,
}Expand description
Websocket get response carrying data.
Fields§
§status: WsStatusThe status of the operation.
data: IndexMap<String, Value>The returned data payload.
Defaults to an empty map so that an error response (which omits data)
still deserializes and is reported via status rather
than as an opaque deserialization error.
Trait Implementations§
§impl Clone for WsGetResponse
impl Clone for WsGetResponse
§fn clone(&self) -> WsGetResponse
fn clone(&self) -> WsGetResponse
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 more§impl Debug for WsGetResponse
impl Debug for WsGetResponse
§impl<'de> Deserialize<'de> for WsGetResponse
impl<'de> Deserialize<'de> for WsGetResponse
§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
Auto Trait Implementations§
impl Freeze for WsGetResponse
impl RefUnwindSafe for WsGetResponse
impl Send for WsGetResponse
impl Sync for WsGetResponse
impl Unpin for WsGetResponse
impl UnwindSafe for WsGetResponse
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