pub struct DefaultReaction {
pub emoji_id: Option<Id<EmojiMarker>>,
pub emoji_name: Option<String>,
}
Expand description
Emoji to use as the default way to react to a forum post.
Exactly one of emoji_id
and emoji_name
must be set.
Fields§
§emoji_id: Option<Id<EmojiMarker>>
ID of custom guild emoji.
Conflicts with emoji_name
.
emoji_name: Option<String>
Unicode emoji character.
Conflicts with emoji_id
.
Trait Implementations§
source§impl Clone for DefaultReaction
impl Clone for DefaultReaction
source§fn clone(&self) -> DefaultReaction
fn clone(&self) -> DefaultReaction
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 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
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 Eq for DefaultReaction
impl StructuralPartialEq for DefaultReaction
Auto Trait Implementations§
impl Freeze for DefaultReaction
impl RefUnwindSafe for DefaultReaction
impl Send for DefaultReaction
impl Sync for DefaultReaction
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)