#[non_exhaustive]pub struct MessageReaction {
pub count: u64,
pub count_details: CountDetails,
pub me: bool,
pub me_burst: bool,
pub reaction_type: ReactionType,
pub burst_colours: Vec<Colour>,
}
Expand description
A representation of a reaction to a message.
Multiple of the same reaction type are sent into one MessageReaction
, with an associated
Self::count
.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.count: u64
The amount of the type of reaction that have been sent for the associated message including super reactions.
count_details: CountDetails
A breakdown of what reactions were from regular reactions and super reactions.
me: bool
Indicator of whether the current user has sent this type of reaction.
me_burst: bool
Indicator of whether the current user has sent the type of super-reaction.
reaction_type: ReactionType
The type of reaction.
burst_colours: Vec<Colour>
Trait Implementations§
Source§impl Clone for MessageReaction
impl Clone for MessageReaction
Source§fn clone(&self) -> MessageReaction
fn clone(&self) -> MessageReaction
Returns a copy 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 MessageReaction
impl Debug for MessageReaction
Source§impl<'de> Deserialize<'de> for MessageReaction
impl<'de> Deserialize<'de> for MessageReaction
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 MessageReaction
impl RefUnwindSafe for MessageReaction
impl Send for MessageReaction
impl Sync for MessageReaction
impl Unpin for MessageReaction
impl UnwindSafe for MessageReaction
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