Struct twilight_model::channel::forum::DefaultReaction
source · 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<DefaultReaction> for DefaultReaction
impl PartialEq<DefaultReaction> for DefaultReaction
source§fn eq(&self, other: &DefaultReaction) -> bool
fn eq(&self, other: &DefaultReaction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for DefaultReaction
impl Serialize for DefaultReaction
impl Eq for DefaultReaction
impl StructuralEq for DefaultReaction
impl StructuralPartialEq for DefaultReaction
Auto Trait Implementations§
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