Struct twitch_types::stream::CategoryId
source · [−]#[repr(transparent)]pub struct CategoryId(_);
Available on crate feature
stream
only.Expand description
A game or category ID
Implementations
sourceimpl CategoryId
impl CategoryId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a new CategoryId from 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>
Trait Implementations
sourceimpl AsRef<CategoryIdRef> for CategoryId
impl AsRef<CategoryIdRef> for CategoryId
sourcefn as_ref(&self) -> &CategoryIdRef
fn as_ref(&self) -> &CategoryIdRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl AsRef<str> for CategoryId
impl AsRef<str> for CategoryId
sourceimpl Borrow<CategoryIdRef> for CategoryId
impl Borrow<CategoryIdRef> for CategoryId
sourcefn borrow(&self) -> &CategoryIdRef
fn borrow(&self) -> &CategoryIdRef
Immutably borrows from an owned value. Read more
sourceimpl Borrow<str> for CategoryId
impl Borrow<str> for CategoryId
sourceimpl Clone for CategoryId
impl Clone for CategoryId
sourcefn clone(&self) -> CategoryId
fn clone(&self) -> CategoryId
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CategoryId
impl Debug for CategoryId
sourceimpl Deref for CategoryId
impl Deref for CategoryId
type Target = CategoryIdRef
type Target = CategoryIdRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for CategoryId
impl<'de> Deserialize<'de> for CategoryId
sourcefn 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
sourceimpl Display for CategoryId
impl Display for CategoryId
sourceimpl From<&CategoryIdRef> for CategoryId
impl From<&CategoryIdRef> for CategoryId
sourcefn from(s: &CategoryIdRef) -> Self
fn from(s: &CategoryIdRef) -> Self
Converts to this type from the input type.
sourceimpl From<&str> for CategoryId
impl From<&str> for CategoryId
sourceimpl From<Box<CategoryIdRef, Global>> for CategoryId
impl From<Box<CategoryIdRef, Global>> for CategoryId
sourcefn from(r: Box<CategoryIdRef>) -> Self
fn from(r: Box<CategoryIdRef>) -> Self
Converts to this type from the input type.
sourceimpl From<CategoryId> for Box<CategoryIdRef>
impl From<CategoryId> for Box<CategoryIdRef>
sourcefn from(r: CategoryId) -> Self
fn from(r: CategoryId) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<CategoryId> for Cow<'a, CategoryIdRef>
impl<'a> From<CategoryId> for Cow<'a, CategoryIdRef>
sourcefn from(owned: CategoryId) -> Self
fn from(owned: CategoryId) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, CategoryIdRef>> for CategoryId
impl<'a> From<Cow<'a, CategoryIdRef>> for CategoryId
sourcefn from(r: Cow<'a, CategoryIdRef>) -> Self
fn from(r: Cow<'a, CategoryIdRef>) -> Self
Converts to this type from the input type.
sourceimpl From<String> for CategoryId
impl From<String> for CategoryId
sourceimpl FromStr for CategoryId
impl FromStr for CategoryId
sourceimpl Hash for CategoryId
impl Hash for CategoryId
sourceimpl Ord for CategoryId
impl Ord for CategoryId
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<&CategoryIdRef> for CategoryId
impl PartialEq<&CategoryIdRef> for CategoryId
sourcefn eq(&self, other: &&CategoryIdRef) -> bool
fn eq(&self, other: &&CategoryIdRef) -> bool
sourceimpl PartialEq<CategoryId> for &CategoryIdRef
impl PartialEq<CategoryId> for &CategoryIdRef
sourcefn eq(&self, other: &CategoryId) -> bool
fn eq(&self, other: &CategoryId) -> bool
sourceimpl PartialEq<CategoryId> for CategoryId
impl PartialEq<CategoryId> for CategoryId
sourcefn eq(&self, other: &CategoryId) -> bool
fn eq(&self, other: &CategoryId) -> bool
sourceimpl PartialEq<CategoryId> for CategoryIdRef
impl PartialEq<CategoryId> for CategoryIdRef
sourcefn eq(&self, other: &CategoryId) -> bool
fn eq(&self, other: &CategoryId) -> bool
sourceimpl PartialEq<CategoryIdRef> for CategoryId
impl PartialEq<CategoryIdRef> for CategoryId
sourcefn eq(&self, other: &CategoryIdRef) -> bool
fn eq(&self, other: &CategoryIdRef) -> bool
sourceimpl PartialOrd<CategoryId> for CategoryId
impl PartialOrd<CategoryId> for CategoryId
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl Serialize for CategoryId
impl Serialize for CategoryId
impl Eq for CategoryId
impl StructuralEq for CategoryId
impl StructuralPartialEq for CategoryId
Auto Trait Implementations
impl RefUnwindSafe for CategoryId
impl Send for CategoryId
impl Sync for CategoryId
impl Unpin for CategoryId
impl UnwindSafe for CategoryId
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more