pub struct MessageActionsState {
pub edited_content: HashMap<MessageId, String>,
pub deleted: HashSet<MessageId>,
pub reactions: HashMap<MessageId, HashMap<String, Vec<MemberId>>>,
}Expand description
Computed state for message actions (edits, deletes, reactions) This is rebuilt from action messages and not serialized
Fields§
§edited_content: HashMap<MessageId, String>Messages that have been edited: message_id -> new text content
deleted: HashSet<MessageId>Messages that have been deleted
reactions: HashMap<MessageId, HashMap<String, Vec<MemberId>>>Reactions on messages: message_id -> (emoji -> list of reactors)
Trait Implementations§
Source§impl Clone for MessageActionsState
impl Clone for MessageActionsState
Source§fn clone(&self) -> MessageActionsState
fn clone(&self) -> MessageActionsState
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 MessageActionsState
impl Debug for MessageActionsState
Source§impl Default for MessageActionsState
impl Default for MessageActionsState
Source§fn default() -> MessageActionsState
fn default() -> MessageActionsState
Returns the “default value” for a type. Read more
Source§impl PartialEq for MessageActionsState
impl PartialEq for MessageActionsState
impl StructuralPartialEq for MessageActionsState
Auto Trait Implementations§
impl Freeze for MessageActionsState
impl RefUnwindSafe for MessageActionsState
impl Send for MessageActionsState
impl Sync for MessageActionsState
impl Unpin for MessageActionsState
impl UnwindSafe for MessageActionsState
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