pub struct Message {
pub id: String,
pub thread_id: String,
pub sender_id: String,
pub sender_name: String,
pub text: String,
pub timestamp: u64,
pub edited: bool,
pub reply_to_id: Option<String>,
pub reactions: Vec<MessageReaction>,
pub is_pinned: bool,
}Expand description
A message in a conversation thread.
Fields§
§id: StringUnique message identifier.
thread_id: StringThread this message belongs to.
sender_id: StringSender’s identity ID.
sender_name: StringSender’s display name for UI rendering.
text: StringMessage text content.
timestamp: u64Timestamp in Unix milliseconds.
edited: boolWhether the message has been edited.
reply_to_id: Option<String>ID of the message being replied to, if any.
reactions: Vec<MessageReaction>Reactions on this message.
is_pinned: boolWhether this message has been pinned in the thread.
Trait Implementations§
impl Eq 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 UnsafeUnpin 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