Struct twitch_irc::message::Emote
source · [−]Expand description
A single emote, appearing as part of a message.
Fields
id: StringAn ID identifying this emote. For example 25 for the “Kappa” emote, but can also be non-numeric,
for example on emotes modified using Twitch channel points, e.g.
301512758_TK for pajaDent_TK where 301512758 is the ID of the original pajaDent emote.
char_range: Range<usize>A range of characters in the original message where the emote is placed.
As is documented on Range, the start index of this range is inclusive, while the
end index is exclusive.
This is always the exact range of characters that Twitch originally sent. Note that due to a Twitch bug (that this library intentionally works around), the character range specified here might be out-of-bounds for the original message text string.
code: StringThis is the text that this emote replaces, e.g. Kappa or :).
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Emote
impl<'de> Deserialize<'de> for Emote
sourcefn 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>,
impl Eq for Emote
impl StructuralEq for Emote
impl StructuralPartialEq for Emote
Auto Trait Implementations
impl RefUnwindSafe for Emote
impl Send for Emote
impl Sync for Emote
impl Unpin for Emote
impl UnwindSafe for Emote
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.