pub struct NewMessage {
pub conversation: ConversationKey,
pub role: MessageRole,
pub author_id: Option<UserId>,
pub author_name: String,
pub text: String,
pub message_id: Option<MessageId>,
pub at: Timestamp,
}Expand description
A message to store.
Fields§
§conversation: ConversationKeyConversation.
role: MessageRoleAuthor role.
Author id (the user, or the bot’s own id when known).
Author display name.
text: StringText (canonical Markdown for bot messages).
message_id: Option<MessageId>Platform message id.
at: TimestampWhen it was sent.
Trait Implementations§
Source§impl Clone for NewMessage
impl Clone for NewMessage
Source§impl Debug for NewMessage
impl Debug for NewMessage
impl Eq for NewMessage
Source§impl PartialEq for NewMessage
impl PartialEq for NewMessage
impl StructuralPartialEq for NewMessage
Auto Trait Implementations§
impl Freeze for NewMessage
impl RefUnwindSafe for NewMessage
impl Send for NewMessage
impl Sync for NewMessage
impl Unpin for NewMessage
impl UnsafeUnpin for NewMessage
impl UnwindSafe for NewMessage
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