pub enum ReactionType {
UnicodeEmoji,
RealmEmoji,
ZulipExtraEmoji,
}Expand description
Represents the type of Reaction.
If present, a string indicating the type of emoji. Each emoji reaction_type has an independent namespace for values of emoji_code. Must be one of the following values:
unicode_emoji: In this namespace,emoji_codewill be a dash-separated hex encoding of the sequence of Unicode codepoints that define this emoji in the Unicode specification.realm_emoji: In this namespace,emoji_codewill be the ID of the uploadedcustom emoji.zulip_extra_emoji: These are special emoji included with Zulip. In this namespace,emoji_codewill be the name of the emoji (e.g. "zulip").
Changes: New in Zulip 5.0 (feature level 86).
Variants§
UnicodeEmoji
Represents a standard Unicode emoji.
RealmEmoji
Represents an Emoji specific to the Zulip server realm.
ZulipExtraEmoji
Represents an Emoji specific to the Zulip servers.
Implementations§
Source§impl ReactionType
impl ReactionType
Sourcepub const UNICODE_EMOJI: &str = "unicode_emoji"
pub const UNICODE_EMOJI: &str = "unicode_emoji"
Represntats the string value of a Unicode emoji ReactionType.
Sourcepub const REALM_EMOJI: &str = "realm_emoji"
pub const REALM_EMOJI: &str = "realm_emoji"
Represntats the string value of a realm emoji ReactionType.
Sourcepub const ZULIP_EXTRA_EMOJI: &str = "zulip_extra_emoji"
pub const ZULIP_EXTRA_EMOJI: &str = "zulip_extra_emoji"
Represntats the string value of a zulip emoji ReactionType.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new ReactionType.
Sourcepub const fn as_str(&self) -> &'static str
pub const fn as_str(&self) -> &'static str
Gets the ReactionType string representation.
Trait Implementations§
Source§impl Clone for ReactionType
impl Clone for ReactionType
impl Copy for ReactionType
Source§impl Debug for ReactionType
impl Debug for ReactionType
Source§impl Default for ReactionType
impl Default for ReactionType
Source§impl<'de> Deserialize<'de> for ReactionType
impl<'de> Deserialize<'de> for ReactionType
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 Display for ReactionType
impl Display for ReactionType
impl Eq for ReactionType
Source§impl PartialEq for ReactionType
impl PartialEq for ReactionType
Source§impl Serialize for ReactionType
impl Serialize 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 UnsafeUnpin 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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
key and return true if they are equal.