pub struct Reaction {
pub burst_colors: Vec<HexColor>,
pub count: u64,
pub count_details: ReactionCountDetails,
pub emoji: EmojiReactionType,
pub me: bool,
pub me_burst: bool,
}Expand description
Reaction below a message.
Fields§
§burst_colors: Vec<HexColor>HEX colors used for super reaction.
count: u64Amount of reactions this emoji has.
count_details: ReactionCountDetailsReaction count details for each type of reaction.
emoji: EmojiReactionTypeEmoji of this reaction.
me: boolWhether the current user has reacted with this emoji.
me_burst: boolWhether the current user super-reacted using this emoji
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
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
impl Eq for Reaction
impl StructuralPartialEq for Reaction
Auto Trait Implementations§
impl Forget for Reaction
impl Freeze for Reactionwhere
*const u8 is !null: Freeze,
PhantomData<HexColor>: Freeze,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: Freeze,
NonZero<u64>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Reaction
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
impl UnsafeUnpin for Reactionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<HexColor>: UnsafeUnpin,
PhantomData<fn(EmojiMarker) -> EmojiMarker>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Reaction
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