pub struct ChatMessage {
pub id: String,
pub message: String,
pub timestamp: i64,
pub edit_timestamp: Option<i64>,
pub deleted: Option<bool>,
pub generated: Option<bool>,
}Fields§
§id: String§message: String§timestamp: i64§edit_timestamp: Option<i64>§deleted: Option<bool>§generated: Option<bool>Trait Implementations§
Source§impl Clone for ChatMessage
impl Clone for ChatMessage
Source§fn clone(&self) -> ChatMessage
fn clone(&self) -> ChatMessage
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 ChatMessage
impl Debug for ChatMessage
Source§impl Default for ChatMessage
impl Default for ChatMessage
Source§fn default() -> ChatMessage
fn default() -> ChatMessage
Returns the “default value” for a type. Read more
Source§impl From<ChatMessage> for ChatMessage
impl From<ChatMessage> for ChatMessage
Source§fn from(proto_msg: ChatMessage) -> Self
fn from(proto_msg: ChatMessage) -> Self
Converts to this type from the input type.
Source§impl From<ChatMessage> for ChatMessage
impl From<ChatMessage> for ChatMessage
Source§fn from(msg: RoomChatMessage) -> Self
fn from(msg: RoomChatMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChatMessage
impl RefUnwindSafe for ChatMessage
impl Send for ChatMessage
impl Sync for ChatMessage
impl Unpin for ChatMessage
impl UnsafeUnpin for ChatMessage
impl UnwindSafe for ChatMessage
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