#[non_exhaustive]pub struct DefaultReaction {
pub emoji_id: Option<EmojiId>,
pub emoji_name: Option<CompactString>,
}Expand description
The emoji of the add-reaction button on posts of a forum or media channel. Exactly one of the fields is set.
discord.js counterpart: DefaultReactionEmoji.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.emoji_id: Option<EmojiId>A custom emoji of the guild.
emoji_name: Option<CompactString>A Unicode emoji.
Implementations§
Trait Implementations§
Source§impl Clone for DefaultReaction
impl Clone for DefaultReaction
Source§impl Debug for DefaultReaction
impl Debug for DefaultReaction
Source§impl<'de> Deserialize<'de> for DefaultReaction
impl<'de> Deserialize<'de> for DefaultReaction
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
impl Eq for DefaultReaction
Source§impl Hash for DefaultReaction
impl Hash for DefaultReaction
Source§impl PartialEq for DefaultReaction
impl PartialEq for DefaultReaction
Source§impl Serialize for DefaultReaction
impl Serialize for DefaultReaction
impl StructuralPartialEq for DefaultReaction
Auto Trait Implementations§
impl Forget for DefaultReaction
impl Freeze for DefaultReaction
impl Move for DefaultReaction
impl RefUnwindSafe for DefaultReaction
impl Send for DefaultReaction
impl Sync for DefaultReaction
impl Unpin for DefaultReaction
impl UnsafeUnpin for DefaultReaction
impl UnwindSafe for DefaultReaction
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