pub struct EmoteIdRef(/* private fields */);
Available on crate feature
emote
only.Expand description
A chat Emote ID
Implementations§
Source§impl EmoteIdRef
impl EmoteIdRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed EmoteIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed EmoteIdRef
Sourcepub fn into_owned(self: Box<EmoteIdRef>) -> EmoteId
pub fn into_owned(self: Box<EmoteIdRef>) -> EmoteId
Converts a Box<EmoteIdRef>
into a EmoteId
without copying or allocating
Source§impl EmoteIdRef
impl EmoteIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, EmoteIdRef>
pub fn as_cow(&self) -> Cow<'_, EmoteIdRef>
Get a
Cow<'_, EmoteIdRef>
Source§impl EmoteIdRef
impl 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 AsRef<str> for EmoteIdRef
impl AsRef<str> for EmoteIdRef
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 Borrow<str> for EmoteIdRef
impl Borrow<str> for EmoteIdRef
Source§impl Debug for EmoteIdRef
impl Debug for EmoteIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a EmoteIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a EmoteIdRef
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<'de> Deserialize<'de> for Box<EmoteIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<EmoteIdRef>
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 Display for EmoteIdRef
impl Display for EmoteIdRef
Source§impl<'a> From<&'a &'a EmoteIdRef> for Collection<'a, EmoteId>
impl<'a> From<&'a &'a EmoteIdRef> for Collection<'a, EmoteId>
Source§fn from(v: &'a &'a EmoteIdRef) -> Self
fn from(v: &'a &'a EmoteIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, EmoteIdRef>> for &'a EmoteIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, EmoteIdRef>> for &'a EmoteIdRef
Source§fn from(r: &'a Cow<'b, EmoteIdRef>) -> &'a EmoteIdRef
fn from(r: &'a Cow<'b, EmoteIdRef>) -> &'a EmoteIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
impl<'a> From<&'a EmoteId> for &'a EmoteIdRef
Source§impl From<&EmoteIdRef> for Arc<EmoteIdRef>
impl From<&EmoteIdRef> for Arc<EmoteIdRef>
Source§fn from(r: &EmoteIdRef) -> Self
fn from(r: &EmoteIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a EmoteIdRef> for Cow<'a, EmoteIdRef>
impl<'a> From<&'a EmoteIdRef> for Cow<'a, EmoteIdRef>
Source§fn from(r: &'a EmoteIdRef) -> Self
fn from(r: &'a EmoteIdRef) -> Self
Converts to this type from the input type.
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<&EmoteIdRef> for Rc<EmoteIdRef>
impl From<&EmoteIdRef> for Rc<EmoteIdRef>
Source§fn from(r: &EmoteIdRef) -> Self
fn from(r: &EmoteIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a EmoteIdRef
impl<'a> From<&'a String> for &'a EmoteIdRef
Source§impl<'a> From<&'a str> for &'a EmoteIdRef
impl<'a> From<&'a str> for &'a EmoteIdRef
Source§fn from(s: &'a str) -> &'a EmoteIdRef
fn from(s: &'a str) -> &'a EmoteIdRef
Converts to this type from the input type.
Source§impl Hash for EmoteIdRef
impl Hash for EmoteIdRef
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 &'a EmoteIdRef
impl<'a> IntoCow<'a, EmoteIdRef> for &'a EmoteIdRef
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 EmoteIdRef
impl Ord for EmoteIdRef
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 PartialEq for EmoteIdRef
impl PartialEq for EmoteIdRef
Source§impl PartialOrd for EmoteIdRef
impl PartialOrd for EmoteIdRef
Source§impl Serialize for EmoteIdRef
Available on crate feature serde
only.
impl Serialize for EmoteIdRef
Available on crate feature
serde
only.