#[non_exhaustive]pub struct EmoteOccurrence {
pub begin: i64,
pub end: i64,
pub id: EmoteId,
}
Available on crate feature
emote
only.Expand description
An emote index as defined by eventsub, similar to IRC emotes
twitch tag.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.begin: i64
The index of where the Emote starts in the text.
end: i64
The index of where the Emote ends in the text.
id: EmoteId
The emote ID.
Trait Implementations§
Source§impl Clone for EmoteOccurrence
impl Clone for EmoteOccurrence
Source§fn clone(&self) -> EmoteOccurrence
fn clone(&self) -> EmoteOccurrence
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EmoteOccurrence
impl Debug for EmoteOccurrence
Source§impl<'de> Deserialize<'de> for EmoteOccurrence
impl<'de> Deserialize<'de> for EmoteOccurrence
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 EmoteOccurrence
impl Display for EmoteOccurrence
Source§impl PartialEq for EmoteOccurrence
impl PartialEq for EmoteOccurrence
Source§impl Serialize for EmoteOccurrence
impl Serialize for EmoteOccurrence
impl Eq for EmoteOccurrence
impl StructuralPartialEq for EmoteOccurrence
Auto Trait Implementations§
impl Freeze for EmoteOccurrence
impl RefUnwindSafe for EmoteOccurrence
impl Send for EmoteOccurrence
impl Sync for EmoteOccurrence
impl Unpin for EmoteOccurrence
impl UnwindSafe for EmoteOccurrence
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