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