Struct twitch_types::emote::ChatBadgeIdRef
source · pub struct ChatBadgeIdRef(/* private fields */);
Available on crate feature
emote
only.Expand description
A channel chat badge ID
Implementations§
source§impl ChatBadgeIdRef
impl ChatBadgeIdRef
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 ChatBadgeIdRef
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 ChatBadgeIdRef
sourcepub fn into_owned(self: Box<ChatBadgeIdRef>) -> ChatBadgeId
pub fn into_owned(self: Box<ChatBadgeIdRef>) -> ChatBadgeId
Converts a Box<ChatBadgeIdRef>
into a ChatBadgeId
without copying or allocating
source§impl ChatBadgeIdRef
impl ChatBadgeIdRef
sourcepub fn as_cow(&self) -> Cow<'_, ChatBadgeIdRef>
pub fn as_cow(&self) -> Cow<'_, ChatBadgeIdRef>
Get a
Cow<'_, ChatBadgeIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a ChatBadgeIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a ChatBadgeIdRef
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<ChatBadgeIdRef> for ChatBadgeId
impl AsRef<ChatBadgeIdRef> for ChatBadgeId
source§fn as_ref(&self) -> &ChatBadgeIdRef
fn as_ref(&self) -> &ChatBadgeIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for ChatBadgeIdRef
impl AsRef<str> for ChatBadgeIdRef
source§impl Borrow<ChatBadgeIdRef> for ChatBadgeId
impl Borrow<ChatBadgeIdRef> for ChatBadgeId
source§fn borrow(&self) -> &ChatBadgeIdRef
fn borrow(&self) -> &ChatBadgeIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for ChatBadgeIdRef
impl Borrow<str> for ChatBadgeIdRef
source§impl Debug for ChatBadgeIdRef
impl Debug for ChatBadgeIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a ChatBadgeIdRef
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<ChatBadgeIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<ChatBadgeIdRef>
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 ChatBadgeIdRef
impl Display for ChatBadgeIdRef
source§impl<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
impl<'a> From<&'a &'a ChatBadgeIdRef> for Collection<'a, ChatBadgeId>
source§fn from(v: &'a &'a ChatBadgeIdRef) -> Self
fn from(v: &'a &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
impl<'a> From<&'a ChatBadgeId> for &'a ChatBadgeIdRef
source§fn from(owned: &'a ChatBadgeId) -> Self
fn from(owned: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
impl From<&ChatBadgeIdRef> for Arc<ChatBadgeIdRef>
source§fn from(r: &ChatBadgeIdRef) -> Self
fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§impl From<&ChatBadgeIdRef> for ChatBadgeId
impl From<&ChatBadgeIdRef> for ChatBadgeId
source§fn from(s: &ChatBadgeIdRef) -> Self
fn from(s: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<&'a ChatBadgeIdRef> for Cow<'a, ChatBadgeIdRef>
source§fn from(r: &'a ChatBadgeIdRef) -> Self
fn from(r: &'a ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§impl From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
impl From<&ChatBadgeIdRef> for Rc<ChatBadgeIdRef>
source§fn from(r: &ChatBadgeIdRef) -> Self
fn from(r: &ChatBadgeIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, ChatBadgeIdRef>> for &'a ChatBadgeIdRef
source§fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
fn from(r: &'a Cow<'b, ChatBadgeIdRef>) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a ChatBadgeIdRef
impl<'a> From<&'a String> for &'a ChatBadgeIdRef
source§impl<'a> From<&'a str> for &'a ChatBadgeIdRef
impl<'a> From<&'a str> for &'a ChatBadgeIdRef
source§fn from(s: &'a str) -> &'a ChatBadgeIdRef
fn from(s: &'a str) -> &'a ChatBadgeIdRef
Converts to this type from the input type.
source§impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
impl From<ChatBadgeId> for Box<ChatBadgeIdRef>
source§fn from(r: ChatBadgeId) -> Self
fn from(r: ChatBadgeId) -> Self
Converts to this type from the input type.
source§impl Hash for ChatBadgeIdRef
impl Hash for ChatBadgeIdRef
source§impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeId
source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
impl<'a> IntoCow<'a, ChatBadgeIdRef> for &'a ChatBadgeIdRef
source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
impl<'a> IntoCow<'a, ChatBadgeIdRef> for ChatBadgeId
source§fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
fn into_cow(self) -> Cow<'a, ChatBadgeIdRef>
Make the cow with proper ownership, muu
source§impl Ord for ChatBadgeIdRef
impl Ord for ChatBadgeIdRef
source§impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<&ChatBadgeIdRef> for ChatBadgeId
source§fn eq(&self, other: &&ChatBadgeIdRef) -> bool
fn eq(&self, other: &&ChatBadgeIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for &ChatBadgeIdRef
source§fn eq(&self, other: &ChatBadgeId) -> bool
fn eq(&self, other: &ChatBadgeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
impl PartialEq<ChatBadgeId> for ChatBadgeIdRef
source§fn eq(&self, other: &ChatBadgeId) -> bool
fn eq(&self, other: &ChatBadgeId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
impl PartialEq<ChatBadgeIdRef> for ChatBadgeId
source§fn eq(&self, other: &ChatBadgeIdRef) -> bool
fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for ChatBadgeIdRef
impl PartialEq for ChatBadgeIdRef
source§fn eq(&self, other: &ChatBadgeIdRef) -> bool
fn eq(&self, other: &ChatBadgeIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChatBadgeIdRef
impl PartialOrd for ChatBadgeIdRef
source§fn partial_cmp(&self, other: &ChatBadgeIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatBadgeIdRef) -> 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 ChatBadgeIdRef
Available on crate feature serde
only.
impl Serialize for ChatBadgeIdRef
Available on crate feature
serde
only.source§impl ToOwned for ChatBadgeIdRef
impl ToOwned for ChatBadgeIdRef
§type Owned = ChatBadgeId
type Owned = ChatBadgeId
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§impl<'zf> ZeroFrom<'zf, ChatBadgeId> for &'zf ChatBadgeIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, ChatBadgeId> for &'zf ChatBadgeIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf ChatBadgeId) -> Self
fn zero_from(other: &'zf ChatBadgeId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, ChatBadgeIdRef> for &'zf ChatBadgeIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, ChatBadgeIdRef> for &'zf ChatBadgeIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf ChatBadgeIdRef) -> Self
fn zero_from(other: &'zf ChatBadgeIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.