pub struct WsRawMessage {
pub msg_type: Option<String>,
pub response_type: Option<String>,
}Expand description
The two fields of a frame that the parser looks at first to decide what kind of frame it is.
Every other field is ignored here. The parser then reads the whole frame into the matching type.
Fields§
§msg_type: Option<String>The type of the frame, if there is one. error marks an error frame.
response_type: Option<String>The responseType of the frame, if there is one. Market data frames have it.
Trait Implementations§
Source§impl Clone for WsRawMessage
impl Clone for WsRawMessage
Source§fn clone(&self) -> WsRawMessage
fn clone(&self) -> WsRawMessage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WsRawMessage
impl Debug for WsRawMessage
Source§impl<'de> Deserialize<'de> for WsRawMessage
impl<'de> Deserialize<'de> for WsRawMessage
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
Auto Trait Implementations§
impl Freeze for WsRawMessage
impl RefUnwindSafe for WsRawMessage
impl Send for WsRawMessage
impl Sync for WsRawMessage
impl Unpin for WsRawMessage
impl UnsafeUnpin for WsRawMessage
impl UnwindSafe for WsRawMessage
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