Struct twitch_types::emote::BadgeSetId
source · pub struct BadgeSetId(/* private fields */);
Available on crate feature
emote
only.Expand description
A Badge set ID
Implementations§
source§impl BadgeSetId
impl BadgeSetId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newBadgeSetIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<BadgeSetIdRef>
pub fn into_boxed_ref(self) -> Box<BadgeSetIdRef>
Converts this BadgeSetId
into a Box<BadgeSetIdRef>
This will drop any excess capacity.
Methods from Deref<Target = BadgeSetIdRef>§
sourcepub fn as_cow(&self) -> Cow<'_, BadgeSetIdRef>
pub fn as_cow(&self) -> Cow<'_, BadgeSetIdRef>
Get a
Cow<'_, BadgeSetIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for BadgeSetId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for BadgeSetId
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<BadgeSetIdRef> for BadgeSetId
impl AsRef<BadgeSetIdRef> for BadgeSetId
source§fn as_ref(&self) -> &BadgeSetIdRef
fn as_ref(&self) -> &BadgeSetIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for BadgeSetId
impl AsRef<str> for BadgeSetId
source§impl Borrow<BadgeSetIdRef> for BadgeSetId
impl Borrow<BadgeSetIdRef> for BadgeSetId
source§fn borrow(&self) -> &BadgeSetIdRef
fn borrow(&self) -> &BadgeSetIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for BadgeSetId
impl Borrow<str> for BadgeSetId
source§impl Clone for BadgeSetId
impl Clone for BadgeSetId
source§fn clone(&self) -> BadgeSetId
fn clone(&self) -> BadgeSetId
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 BadgeSetId
impl Debug for BadgeSetId
source§impl Deref for BadgeSetId
impl Deref for BadgeSetId
source§impl<'de> Deserialize<'de> for BadgeSetId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for BadgeSetId
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 BadgeSetId
impl Display for BadgeSetId
source§impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
impl<'a> From<&'a BadgeSetId> for &'a BadgeSetIdRef
source§fn from(owned: &'a BadgeSetId) -> Self
fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
impl<'a> From<&'a BadgeSetId> for Collection<'a, BadgeSetId>
source§fn from(v: &'a BadgeSetId) -> Self
fn from(v: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a BadgeSetId> for Cow<'a, BadgeSetIdRef>
impl<'a> From<&'a BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§fn from(owned: &'a BadgeSetId) -> Self
fn from(owned: &'a BadgeSetId) -> Self
Converts to this type from the input type.
source§impl From<&BadgeSetIdRef> for BadgeSetId
impl From<&BadgeSetIdRef> for BadgeSetId
source§fn from(s: &BadgeSetIdRef) -> Self
fn from(s: &BadgeSetIdRef) -> Self
Converts to this type from the input type.
source§impl From<&str> for BadgeSetId
impl From<&str> for BadgeSetId
source§impl From<BadgeSetId> for Box<BadgeSetIdRef>
impl From<BadgeSetId> for Box<BadgeSetIdRef>
source§fn from(r: BadgeSetId) -> Self
fn from(r: BadgeSetId) -> Self
Converts to this type from the input type.
source§impl<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
impl<'a> From<BadgeSetId> for Cow<'a, BadgeSetIdRef>
source§fn from(owned: BadgeSetId) -> Self
fn from(owned: BadgeSetId) -> Self
Converts to this type from the input type.
source§impl From<BadgeSetId> for String
impl From<BadgeSetId> for String
source§fn from(s: BadgeSetId) -> Self
fn from(s: BadgeSetId) -> Self
Converts to this type from the input type.
source§impl From<Box<BadgeSetIdRef>> for BadgeSetId
impl From<Box<BadgeSetIdRef>> for BadgeSetId
source§fn from(r: Box<BadgeSetIdRef>) -> Self
fn from(r: Box<BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
impl<'a> From<Cow<'a, BadgeSetIdRef>> for BadgeSetId
source§fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
fn from(r: Cow<'a, BadgeSetIdRef>) -> Self
Converts to this type from the input type.
source§impl From<String> for BadgeSetId
impl From<String> for BadgeSetId
source§impl FromStr for BadgeSetId
impl FromStr for BadgeSetId
source§impl Hash for BadgeSetId
impl Hash for BadgeSetId
source§impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
impl<'a> IntoCow<'a, BadgeSetIdRef> for &'a BadgeSetId
source§fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
impl<'a> IntoCow<'a, BadgeSetIdRef> for BadgeSetId
source§fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
fn into_cow(self) -> Cow<'a, BadgeSetIdRef>
Make the cow with proper ownership, muu
source§impl Ord for BadgeSetId
impl Ord for BadgeSetId
source§impl PartialEq<&BadgeSetId> for BadgeSetId
impl PartialEq<&BadgeSetId> for BadgeSetId
source§fn eq(&self, other: &&BadgeSetId) -> bool
fn eq(&self, other: &&BadgeSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<&BadgeSetIdRef> for BadgeSetId
impl PartialEq<&BadgeSetIdRef> for BadgeSetId
source§fn eq(&self, other: &&BadgeSetIdRef) -> bool
fn eq(&self, other: &&BadgeSetIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BadgeSetId> for &BadgeSetIdRef
impl PartialEq<BadgeSetId> for &BadgeSetIdRef
source§fn eq(&self, other: &BadgeSetId) -> bool
fn eq(&self, other: &BadgeSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BadgeSetId> for BadgeSetIdRef
impl PartialEq<BadgeSetId> for BadgeSetIdRef
source§fn eq(&self, other: &BadgeSetId) -> bool
fn eq(&self, other: &BadgeSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<BadgeSetIdRef> for BadgeSetId
impl PartialEq<BadgeSetIdRef> for BadgeSetId
source§fn eq(&self, other: &BadgeSetIdRef) -> bool
fn eq(&self, other: &BadgeSetIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for BadgeSetId
impl PartialEq for BadgeSetId
source§fn eq(&self, other: &BadgeSetId) -> bool
fn eq(&self, other: &BadgeSetId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BadgeSetId
impl PartialOrd for BadgeSetId
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 BadgeSetId
Available on crate feature serde
only.
impl Serialize for BadgeSetId
Available on crate feature
serde
only.source§impl<'zf> ZeroFrom<'zf, BadgeSetId> for &'zf BadgeSetIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, BadgeSetId> for &'zf BadgeSetIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf BadgeSetId) -> Self
fn zero_from(other: &'zf BadgeSetId) -> Self
Clone the other
C
into a struct that may retain references into C
.impl Eq for BadgeSetId
impl StructuralPartialEq for BadgeSetId
Auto Trait Implementations§
impl Freeze for BadgeSetId
impl RefUnwindSafe for BadgeSetId
impl Send for BadgeSetId
impl Sync for BadgeSetId
impl Unpin for BadgeSetId
impl UnwindSafe for BadgeSetId
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