pub struct GatewayReaction {
pub burst: bool,
pub burst_colors: Vec<HexColor>,
pub channel_id: Id<ChannelMarker>,
pub emoji: EmojiReactionType,
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§
§burst: bool
True if this is a super-reaction.
burst_colors: Vec<HexColor>
Colors used for super-reaction animation in hex format.
This is only present when super-reactions are added.
channel_id: Id<ChannelMarker>
§emoji: EmojiReactionType
§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 for GatewayReaction
impl PartialEq for GatewayReaction
Source§impl Serialize for GatewayReaction
impl Serialize for GatewayReaction
impl Eq for GatewayReaction
impl StructuralPartialEq for GatewayReaction
Auto Trait Implementations§
impl Freeze for GatewayReaction
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