pub struct MessagingMessage {Show 13 fields
pub id: Id<MessagingMessage>,
pub created_at: DateTime<Utc>,
pub user_id: Id<User>,
pub user: User,
pub text: Option<String>,
pub file_id: Option<Id<DriveFile>>,
pub file: Option<DriveFile>,
pub recipient_id: Option<Id<User>>,
pub recipient: Option<User>,
pub group_id: Option<Id<UserGroup>>,
pub group: Option<UserGroup>,
pub is_read: Option<bool>,
pub reads: Option<Vec<Id<User>>>,
}Fields§
§id: Id<MessagingMessage>§created_at: DateTime<Utc>§user_id: Id<User>§user: User§text: Option<String>§file_id: Option<Id<DriveFile>>§file: Option<DriveFile>§recipient_id: Option<Id<User>>§recipient: Option<User>§group_id: Option<Id<UserGroup>>§group: Option<UserGroup>§is_read: Option<bool>§reads: Option<Vec<Id<User>>>Trait Implementations§
Source§impl Clone for MessagingMessage
impl Clone for MessagingMessage
Source§fn clone(&self) -> MessagingMessage
fn clone(&self) -> MessagingMessage
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 MessagingMessage
impl Debug for MessagingMessage
Source§impl<'de> Deserialize<'de> for MessagingMessage
impl<'de> Deserialize<'de> for MessagingMessage
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
Source§impl Entity for MessagingMessage
impl Entity for MessagingMessage
Source§fn id(&self) -> Id<MessagingMessage>
fn id(&self) -> Id<MessagingMessage>
Gets the ID.
Source§impl PaginationItem for MessagingMessage
impl PaginationItem for MessagingMessage
Source§type Id = Id<MessagingMessage>
type Id = Id<MessagingMessage>
The ID type.
Source§fn item_id(&self) -> Id<MessagingMessage>
fn item_id(&self) -> Id<MessagingMessage>
Extracts an ID from the item.
Auto Trait Implementations§
impl Freeze for MessagingMessage
impl RefUnwindSafe for MessagingMessage
impl Send for MessagingMessage
impl Sync for MessagingMessage
impl Unpin for MessagingMessage
impl UnwindSafe for MessagingMessage
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