pub enum ReactionType {
Emoji {
emoji: String,
},
CustomEmoji {
custom_emoji_id: CustomEmojiId,
},
Paid,
}Expand description
The reaction type is based on an emoji or custom emoji.
Variantsยง
Emoji
Emoji reaction.
Fields
emoji: StringReaction emoji. Currently, it can be one of โ๐โ, โ๐โ, โโคโ, โ๐ฅโ, โ๐ฅฐโ, โ๐โ, โ๐โ, โ๐คโ, โ๐คฏโ, โ๐ฑโ, โ๐คฌโ, โ๐ขโ, โ๐โ, โ๐คฉโ, โ๐คฎโ, โ๐ฉโ, โ๐โ, โ๐โ, โ๐โ, โ๐คกโ, โ๐ฅฑโ, โ๐ฅดโ, โ๐โ, โ๐ณโ, โโคโ๐ฅโ, โ๐โ, โ๐ญโ, โ๐ฏโ, โ๐คฃโ, โโกโ, โ๐โ, โ๐โ, โ๐โ, โ๐คจโ, โ๐โ, โ๐โ, โ๐พโ, โ๐โ, โ๐โ, โ๐โ, โ๐ดโ, โ๐ญโ, โ๐คโ, โ๐ปโ, โ๐จโ๐ปโ, โ๐โ, โ๐โ, โ๐โ, โ๐โ, โ๐จโ, โ๐คโ, โโโ, โ๐คโ, โ๐ซกโ, โ๐ โ, โ๐โ, โโโ, โ๐ โ, โ๐คชโ, โ๐ฟโ, โ๐โ, โ๐โ, โ๐โ, โ๐ฆโ, โ๐โ, โ๐โ, โ๐โ, โ๐โ, โ๐พโ, โ๐คทโโโ, โ๐คทโ, โ๐คทโโโ, โ๐กโ
CustomEmoji
Custom emoji reaction.
Fields
custom_emoji_id: CustomEmojiIdCustom emoji identifier.
Paid
Paid reaction.
Implementationsยง
Sourceยงimpl ReactionType
impl ReactionType
pub fn emoji(&self) -> Option<&String>
pub fn custom_emoji_id(&self) -> Option<&CustomEmojiId>
Trait Implementationsยง
Sourceยงimpl Clone for ReactionType
impl Clone for ReactionType
Sourceยงfn clone(&self) -> ReactionType
fn clone(&self) -> ReactionType
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for ReactionType
impl Debug for ReactionType
Sourceยงimpl<'de> Deserialize<'de> for ReactionType
impl<'de> Deserialize<'de> for ReactionType
Sourceยงfn deserialize<__D>(
__deserializer: __D,
) -> Result<ReactionType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ReactionType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Sourceยงimpl Hash for ReactionType
impl Hash for ReactionType
Sourceยงimpl PartialEq for ReactionType
impl PartialEq for ReactionType
Sourceยงimpl Serialize for ReactionType
impl Serialize for ReactionType
Sourceยงfn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for ReactionType
impl StructuralPartialEq for ReactionType
Auto Trait Implementationsยง
impl Freeze for ReactionType
impl RefUnwindSafe for ReactionType
impl Send for ReactionType
impl Sync for ReactionType
impl Unpin for ReactionType
impl UnwindSafe for ReactionType
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงimpl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Sourceยงfn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Sourceยงimpl<T> Erasable for T
impl<T> Erasable for T
Sourceยงconst ACK_1_1_0: bool = true
const ACK_1_1_0: bool = true
enforce_1_1_0_semantics only.uneraseโs documented implementation requirements. Read moreSourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more