pub struct BroadcastPayload {
pub from: String,
pub message: String,
}
Expand description
The payload for a broadcast message.
Fields§
§from: String
The name of the sender.
message: String
The text of the broadcast message.
Trait Implementations§
Source§impl Debug for BroadcastPayload
impl Debug for BroadcastPayload
Source§impl<'de> Deserialize<'de> for BroadcastPayload
impl<'de> Deserialize<'de> for BroadcastPayload
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 BroadcastPayload
impl RefUnwindSafe for BroadcastPayload
impl Send for BroadcastPayload
impl Sync for BroadcastPayload
impl Unpin for BroadcastPayload
impl UnwindSafe for BroadcastPayload
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