pub struct WsMessage {
pub topic: String,
pub msg_type: Option<String>,
pub ts: Option<u64>,
pub data: Value,
}Expand description
WebSocket message (data push).
Fields§
§topic: StringTopic name
msg_type: Option<String>Message type (snapshot, delta)
ts: Option<u64>Timestamp
data: ValueData payload
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WsMessage
impl<'de> Deserialize<'de> for WsMessage
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 WsMessage
impl RefUnwindSafe for WsMessage
impl Send for WsMessage
impl Sync for WsMessage
impl Unpin for WsMessage
impl UnsafeUnpin for WsMessage
impl UnwindSafe for WsMessage
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