Struct twitch_types::emote::EmoteIdRef
source · 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<'a> Arbitrary<'a> for &'a EmoteIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a EmoteIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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§fn eq(&self, other: &&EmoteIdRef) -> bool
fn eq(&self, other: &&EmoteIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§fn eq(&self, other: &EmoteIdRef) -> bool
fn eq(&self, other: &EmoteIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for EmoteIdRef
impl PartialEq for EmoteIdRef
source§fn eq(&self, other: &EmoteIdRef) -> bool
fn eq(&self, other: &EmoteIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EmoteIdRef
impl PartialOrd for EmoteIdRef
source§fn partial_cmp(&self, other: &EmoteIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &EmoteIdRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for EmoteIdRef
Available on crate feature serde
only.
impl Serialize for EmoteIdRef
Available on crate feature
serde
only.source§impl ToOwned for EmoteIdRef
impl ToOwned for EmoteIdRef
source§impl<'zf> ZeroFrom<'zf, EmoteId> for &'zf EmoteIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EmoteId> for &'zf EmoteIdRef
Available on crate feature
zerofrom
only.source§impl<'zf> ZeroFrom<'zf, EmoteIdRef> for &'zf EmoteIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, EmoteIdRef> for &'zf EmoteIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf EmoteIdRef) -> Self
fn zero_from(other: &'zf EmoteIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.