Struct twilight_model::gateway::GatewayReaction
source · pub struct GatewayReaction {
pub channel_id: Id<ChannelMarker>,
pub emoji: ReactionType,
pub guild_id: Option<Id<GuildMarker>>,
pub member: Option<Member>,
pub message_author_id: Option<Id<UserMarker>>,
pub message_id: Id<MessageMarker>,
pub user_id: Id<UserMarker>,
}
Fields§
§channel_id: Id<ChannelMarker>
§emoji: ReactionType
§guild_id: Option<Id<GuildMarker>>
§member: Option<Member>
ID of the user who authored the message which was reacted to.
message_id: Id<MessageMarker>
§user_id: Id<UserMarker>
Trait Implementations§
source§impl Clone for GatewayReaction
impl Clone for GatewayReaction
source§fn clone(&self) -> GatewayReaction
fn clone(&self) -> GatewayReaction
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 GatewayReaction
impl Debug for GatewayReaction
source§impl<'de> Deserialize<'de> for GatewayReaction
impl<'de> Deserialize<'de> for GatewayReaction
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 Hash for GatewayReaction
impl Hash for GatewayReaction
source§impl PartialEq<GatewayReaction> for GatewayReaction
impl PartialEq<GatewayReaction> for GatewayReaction
source§fn eq(&self, other: &GatewayReaction) -> bool
fn eq(&self, other: &GatewayReaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for GatewayReaction
impl Serialize for GatewayReaction
impl Eq for GatewayReaction
impl StructuralEq for GatewayReaction
impl StructuralPartialEq for GatewayReaction
Auto Trait Implementations§
impl RefUnwindSafe for GatewayReaction
impl Send for GatewayReaction
impl Sync for GatewayReaction
impl Unpin for GatewayReaction
impl UnwindSafe for GatewayReaction
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