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: u64Amount of reactions this emoji has.
emoji: ReactionTypeEmoji of this reaction.
me: boolWhether the current user has reacted with this emoji.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Reaction
impl<'de> Deserialize<'de> for Reaction
sourcefn 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 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more