pub enum Payload {
Join(JoinPayload),
Response(JoinResponsePayload),
System(SystemPayload),
AccessToken(AccessTokenPayload),
PostgresChanges(PostgresChangesPayload),
Broadcast(BroadcastPayload),
PresenceState(RawPresenceState),
PresenceDiff(RawPresenceDiff),
Reply(ReplyPayload),
PresenceTrack(PresenceTrackPayload),
Empty {},
}Expand description
Message payload, enum allows each payload type to be contained in crate::message::realtime_message::RealtimeMessage without needing a seperate struct per message type.
Variants§
Join(JoinPayload)
Response(JoinResponsePayload)
System(SystemPayload)
AccessToken(AccessTokenPayload)
PostgresChanges(PostgresChangesPayload)
Broadcast(BroadcastPayload)
PresenceState(RawPresenceState)
PresenceDiff(RawPresenceDiff)
Reply(ReplyPayload)
PresenceTrack(PresenceTrackPayload)
Empty
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
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 Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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