pub struct PusherEvent {
pub event: String,
pub channel: Option<String>,
pub data: String,
}Expand description
A raw Pusher event received from the WebSocket.
Useful for debugging or handling event types beyond chat messages.
Fields§
§event: StringThe Pusher event name (e.g. App\Events\ChatMessageEvent)
channel: Option<String>The channel this event was received on, if any
data: StringThe raw JSON data payload (may need a second parse — Pusher double-encodes)
Trait Implementations§
Source§impl Clone for PusherEvent
impl Clone for PusherEvent
Source§fn clone(&self) -> PusherEvent
fn clone(&self) -> PusherEvent
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 moreAuto Trait Implementations§
impl Freeze for PusherEvent
impl RefUnwindSafe for PusherEvent
impl Send for PusherEvent
impl Sync for PusherEvent
impl Unpin for PusherEvent
impl UnwindSafe for PusherEvent
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