pub struct SimpleMessage {
pub id: String,
pub username: String,
pub content: String,
pub created_at: String,
}Expand description
Simple message structure for easy chat message handling
Fields§
§id: String§username: String§content: String§created_at: StringTrait Implementations§
Source§impl Clone for SimpleMessage
impl Clone for SimpleMessage
Source§fn clone(&self) -> SimpleMessage
fn clone(&self) -> SimpleMessage
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 moreSource§impl Debug for SimpleMessage
impl Debug for SimpleMessage
Source§impl From<&ChatMessageEvent> for SimpleMessage
impl From<&ChatMessageEvent> for SimpleMessage
Source§fn from(chat_msg: &ChatMessageEvent) -> Self
fn from(chat_msg: &ChatMessageEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SimpleMessage
impl RefUnwindSafe for SimpleMessage
impl Send for SimpleMessage
impl Sync for SimpleMessage
impl Unpin for SimpleMessage
impl UnwindSafe for SimpleMessage
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