pub struct ReactionTypeEmoji {
pub tg_type: String,
pub emoji: String,
}Expand description
The reaction is based on an emoji.
Fields§
§tg_type: StringType of the reaction, always “emoji”
emoji: StringReaction emoji. Currently, it can be one of “❤”, “👍”, “👎”, “🔥”, “🥰”, “👏”, “😁”, “🤔”, “🤯”, “😱”, “🤬”, “😢”, “🎉”, “🤩”, “🤮”, “💩”, “🙏”, “👌”, “🕊”, “🤡”, “🥱”, “🥴”, “😍”, “🐳”, “❤🔥”, “🌚”, “🌭”, “💯”, “🤣”, “⚡”, “🍌”, “🏆”, “💔”, “🤨”, “😐”, “🍓”, “🍾”, “💋”, “🖕”, “😈”, “😴”, “😭”, “🤓”, “👻”, “👨💻”, “👀”, “🎃”, “🙈”, “😇”, “😨”, “🤝”, “✍”, “🤗”, “🫡”, “🎅”, “🎄”, “☃”, “💅”, “🤪”, “🗿”, “🆒”, “💘”, “🙉”, “🦄”, “😘”, “💊”, “🙊”, “😎”, “👾”, “🤷♂”, “🤷”, “🤷♀”, “😡”
Implementations§
Source§impl ReactionTypeEmoji
impl ReactionTypeEmoji
pub fn noskip(self) -> NoSkipReactionTypeEmoji
Source§impl ReactionTypeEmoji
impl ReactionTypeEmoji
pub fn new(emoji: String) -> Self
Sourcepub fn get_tg_type<'a>(&'a self) -> &'a str
pub fn get_tg_type<'a>(&'a self) -> &'a str
Type of the reaction, always “emoji”
Sourcepub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
pub fn set_tg_type<'a>(&'a mut self, tg_type: String) -> &'a mut Self
Type of the reaction, always “emoji”
Sourcepub fn get_emoji<'a>(&'a self) -> &'a str
pub fn get_emoji<'a>(&'a self) -> &'a str
Reaction emoji. Currently, it can be one of “❤”, “👍”, “👎”, “🔥”, “🥰”, “👏”, “😁”, “🤔”, “🤯”, “😱”, “🤬”, “😢”, “🎉”, “🤩”, “🤮”, “💩”, “🙏”, “👌”, “🕊”, “🤡”, “🥱”, “🥴”, “😍”, “🐳”, “❤🔥”, “🌚”, “🌭”, “💯”, “🤣”, “⚡”, “🍌”, “🏆”, “💔”, “🤨”, “😐”, “🍓”, “🍾”, “💋”, “🖕”, “😈”, “😴”, “😭”, “🤓”, “👻”, “👨💻”, “👀”, “🎃”, “🙈”, “😇”, “😨”, “🤝”, “✍”, “🤗”, “🫡”, “🎅”, “🎄”, “☃”, “💅”, “🤪”, “🗿”, “🆒”, “💘”, “🙉”, “🦄”, “😘”, “💊”, “🙊”, “😎”, “👾”, “🤷♂”, “🤷”, “🤷♀”, “😡”
Sourcepub fn set_emoji<'a>(&'a mut self, emoji: String) -> &'a mut Self
pub fn set_emoji<'a>(&'a mut self, emoji: String) -> &'a mut Self
Reaction emoji. Currently, it can be one of “❤”, “👍”, “👎”, “🔥”, “🥰”, “👏”, “😁”, “🤔”, “🤯”, “😱”, “🤬”, “😢”, “🎉”, “🤩”, “🤮”, “💩”, “🙏”, “👌”, “🕊”, “🤡”, “🥱”, “🥴”, “😍”, “🐳”, “❤🔥”, “🌚”, “🌭”, “💯”, “🤣”, “⚡”, “🍌”, “🏆”, “💔”, “🤨”, “😐”, “🍓”, “🍾”, “💋”, “🖕”, “😈”, “😴”, “😭”, “🤓”, “👻”, “👨💻”, “👀”, “🎃”, “🙈”, “😇”, “😨”, “🤝”, “✍”, “🤗”, “🫡”, “🎅”, “🎄”, “☃”, “💅”, “🤪”, “🗿”, “🆒”, “💘”, “🙉”, “🦄”, “😘”, “💊”, “🙊”, “😎”, “👾”, “🤷♂”, “🤷”, “🤷♀”, “😡”
Trait Implementations§
Source§impl Clone for ReactionTypeEmoji
impl Clone for ReactionTypeEmoji
Source§fn clone(&self) -> ReactionTypeEmoji
fn clone(&self) -> ReactionTypeEmoji
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReactionTypeEmoji
impl Debug for ReactionTypeEmoji
Source§impl Default for ReactionTypeEmoji
impl Default for ReactionTypeEmoji
Source§fn default() -> ReactionTypeEmoji
fn default() -> ReactionTypeEmoji
Source§impl<'de> Deserialize<'de> for ReactionTypeEmoji
impl<'de> Deserialize<'de> for ReactionTypeEmoji
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>,
Source§impl From<BoxWrapper<Box<ReactionTypeEmoji>>> for ReactionTypeEmoji
impl From<BoxWrapper<Box<ReactionTypeEmoji>>> for ReactionTypeEmoji
Source§fn from(t: BoxWrapper<Box<ReactionTypeEmoji>>) -> Self
fn from(t: BoxWrapper<Box<ReactionTypeEmoji>>) -> Self
Source§impl From<BoxWrapper<Unbox<ReactionTypeEmoji>>> for ReactionTypeEmoji
impl From<BoxWrapper<Unbox<ReactionTypeEmoji>>> for ReactionTypeEmoji
Source§fn from(t: BoxWrapper<Unbox<ReactionTypeEmoji>>) -> Self
fn from(t: BoxWrapper<Unbox<ReactionTypeEmoji>>) -> Self
Source§impl From<NoSkipReactionTypeEmoji> for ReactionTypeEmoji
impl From<NoSkipReactionTypeEmoji> for ReactionTypeEmoji
Source§fn from(t: NoSkipReactionTypeEmoji) -> Self
fn from(t: NoSkipReactionTypeEmoji) -> Self
Source§impl Hash for ReactionTypeEmoji
impl Hash for ReactionTypeEmoji
Source§impl Into<NoSkipReactionTypeEmoji> for ReactionTypeEmoji
impl Into<NoSkipReactionTypeEmoji> for ReactionTypeEmoji
Source§fn into(self) -> NoSkipReactionTypeEmoji
fn into(self) -> NoSkipReactionTypeEmoji
Source§impl Ord for ReactionTypeEmoji
impl Ord for ReactionTypeEmoji
Source§fn cmp(&self, other: &ReactionTypeEmoji) -> Ordering
fn cmp(&self, other: &ReactionTypeEmoji) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ReactionTypeEmoji
impl PartialEq for ReactionTypeEmoji
Source§impl PartialOrd for ReactionTypeEmoji
impl PartialOrd for ReactionTypeEmoji
Source§impl Serialize for ReactionTypeEmoji
impl Serialize for ReactionTypeEmoji
impl Eq for ReactionTypeEmoji
impl StructuralPartialEq for ReactionTypeEmoji
Auto Trait Implementations§
impl Freeze for ReactionTypeEmoji
impl RefUnwindSafe for ReactionTypeEmoji
impl Send for ReactionTypeEmoji
impl Sync for ReactionTypeEmoji
impl Unpin for ReactionTypeEmoji
impl UnsafeUnpin for ReactionTypeEmoji
impl UnwindSafe for ReactionTypeEmoji
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.