Struct twitch_types::emote::ChatBadgeId
source · pub struct ChatBadgeId(/* private fields */);
Available on crate feature
emote
only.Expand description
A channel chat badge ID
Implementations§
source§impl ChatBadgeId
impl ChatBadgeId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newChatBadgeIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<ChatBadgeIdRef>
pub fn into_boxed_ref(self) -> Box<ChatBadgeIdRef>
Converts this ChatBadgeId
into a Box<ChatBadgeIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 ChatBadgeId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for ChatBadgeId
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 ChatBadgeId
impl AsRef<str> for ChatBadgeId
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 ChatBadgeId
impl Borrow<str> for ChatBadgeId
source§impl Clone for ChatBadgeId
impl Clone for ChatBadgeId
source§fn clone(&self) -> ChatBadgeId
fn clone(&self) -> ChatBadgeId
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 ChatBadgeId
impl Debug for ChatBadgeId
source§impl Deref for ChatBadgeId
impl Deref for ChatBadgeId
source§impl<'de> Deserialize<'de> for ChatBadgeId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for ChatBadgeId
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 ChatBadgeId
impl Display for ChatBadgeId
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<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
impl<'a> From<&'a ChatBadgeId> for Collection<'a, ChatBadgeId>
source§fn from(v: &'a ChatBadgeId) -> Self
fn from(v: &'a ChatBadgeId) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<&'a ChatBadgeId> for Cow<'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 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 From<&str> for ChatBadgeId
impl From<&str> for ChatBadgeId
source§impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
impl From<Box<ChatBadgeIdRef>> for ChatBadgeId
source§fn from(r: Box<ChatBadgeIdRef>) -> Self
fn from(r: Box<ChatBadgeIdRef>) -> Self
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<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
impl<'a> From<ChatBadgeId> for Cow<'a, ChatBadgeIdRef>
source§fn from(owned: ChatBadgeId) -> Self
fn from(owned: ChatBadgeId) -> Self
Converts to this type from the input type.
source§impl From<ChatBadgeId> for String
impl From<ChatBadgeId> for String
source§fn from(s: ChatBadgeId) -> Self
fn from(s: ChatBadgeId) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
impl<'a> From<Cow<'a, ChatBadgeIdRef>> for ChatBadgeId
source§fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
fn from(r: Cow<'a, ChatBadgeIdRef>) -> Self
Converts to this type from the input type.
source§impl From<String> for ChatBadgeId
impl From<String> for ChatBadgeId
source§impl FromStr for ChatBadgeId
impl FromStr for ChatBadgeId
source§impl Hash for ChatBadgeId
impl Hash for ChatBadgeId
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 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 ChatBadgeId
impl Ord for ChatBadgeId
source§impl PartialEq<&ChatBadgeId> for ChatBadgeId
impl PartialEq<&ChatBadgeId> for ChatBadgeId
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<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 ChatBadgeId
impl PartialEq for ChatBadgeId
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 PartialOrd for ChatBadgeId
impl PartialOrd for ChatBadgeId
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 ChatBadgeId
Available on crate feature serde
only.
impl Serialize for ChatBadgeId
Available on crate feature
serde
only.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
.impl Eq for ChatBadgeId
impl StructuralPartialEq for ChatBadgeId
Auto Trait Implementations§
impl Freeze for ChatBadgeId
impl RefUnwindSafe for ChatBadgeId
impl Send for ChatBadgeId
impl Sync for ChatBadgeId
impl Unpin for ChatBadgeId
impl UnwindSafe for ChatBadgeId
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