pub struct EmoteId(/* private fields */);
Available on crate feature
emote
only.Expand description
A chat Emote ID
Implementations§
Source§impl EmoteId
impl EmoteId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newEmoteIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<EmoteIdRef>
pub fn into_boxed_ref(self) -> Box<EmoteIdRef>
Converts this EmoteId
into a Box<EmoteIdRef>
This will drop any excess capacity.
Methods from Deref<Target = EmoteIdRef>§
Sourcepub fn as_cow(&self) -> Cow<'_, EmoteIdRef>
pub fn as_cow(&self) -> Cow<'_, EmoteIdRef>
Get a
Cow<'_, EmoteIdRef>
Sourcepub fn default_render(&self) -> String
pub fn default_render(&self) -> String
Generates url for this emote.
Generated URL will be "https://static-cdn.jtvnw.net/emoticons/v2/{emote_id}/default/light/1.0"
Sourcepub fn url(&self) -> EmoteUrlBuilder<'_>
pub fn url(&self) -> EmoteUrlBuilder<'_>
Create a EmoteUrlBuilder
for this emote
Trait Implementations§
Source§impl AsRef<EmoteIdRef> for EmoteId
impl AsRef<EmoteIdRef> for EmoteId
Source§fn as_ref(&self) -> &EmoteIdRef
fn as_ref(&self) -> &EmoteIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<EmoteIdRef> for EmoteId
impl Borrow<EmoteIdRef> for EmoteId
Source§fn borrow(&self) -> &EmoteIdRef
fn borrow(&self) -> &EmoteIdRef
Immutably borrows from an owned value. Read more
Source§impl<'de> Deserialize<'de> for EmoteId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for EmoteId
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
Source§impl From<&EmoteIdRef> for EmoteId
impl From<&EmoteIdRef> for EmoteId
Source§fn from(s: &EmoteIdRef) -> Self
fn from(s: &EmoteIdRef) -> Self
Converts to this type from the input type.
Source§impl From<Box<EmoteIdRef>> for EmoteId
impl From<Box<EmoteIdRef>> for EmoteId
Source§fn from(r: Box<EmoteIdRef>) -> Self
fn from(r: Box<EmoteIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, EmoteIdRef>> for EmoteId
impl<'a> From<Cow<'a, EmoteIdRef>> for EmoteId
Source§fn from(r: Cow<'a, EmoteIdRef>) -> Self
fn from(r: Cow<'a, EmoteIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoCow<'a, EmoteIdRef> for &'a EmoteId
impl<'a> IntoCow<'a, EmoteIdRef> for &'a EmoteId
Source§fn into_cow(self) -> Cow<'a, EmoteIdRef>
fn into_cow(self) -> Cow<'a, EmoteIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, EmoteIdRef> for EmoteId
impl<'a> IntoCow<'a, EmoteIdRef> for EmoteId
Source§fn into_cow(self) -> Cow<'a, EmoteIdRef>
fn into_cow(self) -> Cow<'a, EmoteIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for EmoteId
impl Ord for EmoteId
Source§impl PartialEq<&EmoteIdRef> for EmoteId
impl PartialEq<&EmoteIdRef> for EmoteId
Source§impl PartialEq<EmoteId> for &EmoteIdRef
impl PartialEq<EmoteId> for &EmoteIdRef
Source§impl PartialEq<EmoteId> for EmoteIdRef
impl PartialEq<EmoteId> for EmoteIdRef
Source§impl PartialEq<EmoteIdRef> for EmoteId
impl PartialEq<EmoteIdRef> for EmoteId
Source§impl PartialOrd for EmoteId
impl PartialOrd for EmoteId
impl Eq for EmoteId
impl StructuralPartialEq for EmoteId
Auto Trait Implementations§
impl Freeze for EmoteId
impl RefUnwindSafe for EmoteId
impl Send for EmoteId
impl Sync for EmoteId
impl Unpin for EmoteId
impl UnwindSafe for EmoteId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)