pub struct DirectMessage {
pub id: Uuid,
pub from_user_id: Uuid,
pub to_user_id: Uuid,
pub from_username: String,
pub to_username: String,
pub content: String,
pub created_at: DateTime<Utc>,
pub is_read: bool,
}Fields§
§id: Uuid§from_user_id: Uuid§to_user_id: Uuid§from_username: String§to_username: String§content: String§created_at: DateTime<Utc>§is_read: boolTrait Implementations§
Source§impl Clone for DirectMessage
impl Clone for DirectMessage
Source§fn clone(&self) -> DirectMessage
fn clone(&self) -> DirectMessage
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 DirectMessage
impl Debug for DirectMessage
Source§impl<'de> Deserialize<'de> for DirectMessage
impl<'de> Deserialize<'de> for DirectMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DirectMessage
impl RefUnwindSafe for DirectMessage
impl Send for DirectMessage
impl Sync for DirectMessage
impl Unpin for DirectMessage
impl UnwindSafe for DirectMessage
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