Struct tomsg_rs::Message [−][src]
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: Id
The 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: SystemTime
The time this message was sent.
message: Box<Line>
The contents of this message.
Trait Implementations
impl Eq for Message
[src]
impl StructuralEq for Message
[src]
impl StructuralPartialEq for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more