pub struct Message {
pub content: String,
pub author: u16,
pub when: Instant,
}Expand description
Middle level abstraction.
Represents a message sent by someone in asciicker
Fields§
§content: StringContents of the message
Author id
when: InstantWhen the message was sent
Implementations§
Trait Implementations§
Source§impl PartialOrd for Message
impl PartialOrd 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