pub struct ReactionSummary {
pub unique: BTreeMap<String, ClientIdList>,
pub distinct: BTreeMap<String, ClientIdList>,
pub multiple: BTreeMap<String, ClientIdCounts>,
}Expand description
Summary of reactions on a message, grouped by reaction type. Each map is keyed by the reaction name (e.g. an emoji). Absent groups default to empty.
Fields§
§unique: BTreeMap<String, ClientIdList>unique reactions, keyed by reaction name.
distinct: BTreeMap<String, ClientIdList>distinct reactions, keyed by reaction name.
multiple: BTreeMap<String, ClientIdCounts>multiple reactions, keyed by reaction name.
Trait Implementations§
Source§impl Clone for ReactionSummary
impl Clone for ReactionSummary
Source§fn clone(&self) -> ReactionSummary
fn clone(&self) -> ReactionSummary
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReactionSummary
impl Debug for ReactionSummary
Source§impl Default for ReactionSummary
impl Default for ReactionSummary
Source§fn default() -> ReactionSummary
fn default() -> ReactionSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReactionSummary
impl<'de> Deserialize<'de> for ReactionSummary
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 ReactionSummary
impl RefUnwindSafe for ReactionSummary
impl Send for ReactionSummary
impl Sync for ReactionSummary
impl Unpin for ReactionSummary
impl UnsafeUnpin for ReactionSummary
impl UnwindSafe for ReactionSummary
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