Struct mattermost_api::socket::WebsocketEvent [−][src]
pub struct WebsocketEvent {
pub event: String,
pub data: Value,
pub broadcast: WebsocketEventBroadcast,
pub seq: usize,
}
Expand description
Event data from the websocket API
Fields
event: String
Event type
data: Value
Event data
broadcast: WebsocketEventBroadcast
Event recipient information
seq: usize
Sequence number
Trait Implementations
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 RefUnwindSafe for WebsocketEvent
impl Send for WebsocketEvent
impl Sync for WebsocketEvent
impl Unpin for WebsocketEvent
impl UnwindSafe for WebsocketEvent
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more