twilight_model/gateway/payload/incoming/reaction_add.rs
use crate::gateway::GatewayReaction;
use serde::{Deserialize, Serialize};
use std::ops::{Deref, DerefMut};
#[derive(Clone, Debug, Deserialize, Eq, Hash, PartialEq, Serialize)]
pub struct ReactionAdd(pub GatewayReaction);
impl Deref for ReactionAdd {
type Target = GatewayReaction;
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl DerefMut for ReactionAdd {
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}