Struct twilight_model::channel::message::Reaction
source · pub struct Reaction {
pub count: u64,
pub emoji: ReactionType,
pub me: bool,
}
Expand description
Reaction below a message.
Fields§
§count: u64
Amount of reactions this emoji has.
emoji: ReactionType
Emoji of this reaction.
me: bool
Whether the current user has reacted with 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
source§impl PartialEq<Reaction> for Reaction
impl PartialEq<Reaction> for Reaction
impl Eq for Reaction
impl StructuralEq for Reaction
impl StructuralPartialEq for Reaction
Auto Trait Implementations§
impl RefUnwindSafe for Reaction
impl Send for Reaction
impl Sync for Reaction
impl Unpin for Reaction
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