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