pub struct Message {
pub id: Id,
pub reply_on: Option<Id>,
pub roomname: Box<Word>,
pub username: Box<Word>,
pub timestamp: SystemTime,
pub message: Box<Line>,
}Expand description
A tomsg message message in a room.
Fields§
§id: IdThe ID of the message.
reply_on: Option<Id>The ID of the message this message replies on, if any.
roomname: Box<Word>The name of the tomsg room this message is sent in.
username: Box<Word>The username of the author of this message.
timestamp: SystemTimeThe time this message was sent.
message: Box<Line>The contents of this message.
Trait Implementations§
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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