[−][src]Struct twitch_irc::message::Emote
A single emote, appearing as part of a message.
Fields
id: String
An 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: String
This 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
impl Send for Emote
impl Sync for Emote
impl Unpin for Emote
impl UnwindSafe for Emote
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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.
fn to_owned(&self) -> T
[src]
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.
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.
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>,