[−][src]Struct twitch_irc::message::Emote
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
impl Clone for Emote[src]
impl Debug for Emote[src]
impl PartialEq<Emote> for Emote[src]
impl StructuralPartialEq for Emote[src]
Auto Trait Implementations
impl RefUnwindSafe for Emote[src]
impl Send for Emote[src]
impl Sync for Emote[src]
impl Unpin for Emote[src]
impl UnwindSafe for Emote[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,