Struct twitch_types::stream::CategoryIdRef
source · pub struct CategoryIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A game or category ID
Implementations§
source§impl CategoryIdRef
impl CategoryIdRef
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 CategoryIdRef
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 CategoryIdRef
sourcepub fn into_owned(self: Box<CategoryIdRef>) -> CategoryId
pub fn into_owned(self: Box<CategoryIdRef>) -> CategoryId
Converts a Box<CategoryIdRef>
into a CategoryId
without copying or allocating
source§impl CategoryIdRef
impl 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 &'a CategoryIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a CategoryIdRef
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 CategoryIdRef
impl AsRef<str> for CategoryIdRef
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 CategoryIdRef
impl Borrow<str> for CategoryIdRef
source§impl Debug for CategoryIdRef
impl Debug for CategoryIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a CategoryIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a CategoryIdRef
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<CategoryIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<CategoryIdRef>
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 CategoryIdRef
impl Display for CategoryIdRef
source§impl<'a> From<&'a &'a CategoryIdRef> for Collection<'a, CategoryId>
impl<'a> From<&'a &'a CategoryIdRef> for Collection<'a, CategoryId>
source§fn from(v: &'a &'a CategoryIdRef) -> Self
fn from(v: &'a &'a CategoryIdRef) -> Self
Converts to this type from the input type.
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 From<&CategoryIdRef> for Arc<CategoryIdRef>
impl From<&CategoryIdRef> for Arc<CategoryIdRef>
source§fn from(r: &CategoryIdRef) -> Self
fn from(r: &CategoryIdRef) -> 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<'a> From<&'a CategoryIdRef> for Cow<'a, CategoryIdRef>
impl<'a> From<&'a CategoryIdRef> for Cow<'a, CategoryIdRef>
source§fn from(r: &'a CategoryIdRef) -> Self
fn from(r: &'a CategoryIdRef) -> Self
Converts to this type from the input type.
source§impl From<&CategoryIdRef> for Rc<CategoryIdRef>
impl From<&CategoryIdRef> for Rc<CategoryIdRef>
source§fn from(r: &CategoryIdRef) -> Self
fn from(r: &CategoryIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, CategoryIdRef>> for &'a CategoryIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, CategoryIdRef>> for &'a CategoryIdRef
source§fn from(r: &'a Cow<'b, CategoryIdRef>) -> &'a CategoryIdRef
fn from(r: &'a Cow<'b, CategoryIdRef>) -> &'a CategoryIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a CategoryIdRef
impl<'a> From<&'a String> for &'a CategoryIdRef
source§impl<'a> From<&'a str> for &'a CategoryIdRef
impl<'a> From<&'a str> for &'a CategoryIdRef
source§fn from(s: &'a str) -> &'a CategoryIdRef
fn from(s: &'a str) -> &'a CategoryIdRef
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 Hash for CategoryIdRef
impl Hash for CategoryIdRef
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 &'a CategoryIdRef
impl<'a> IntoCow<'a, CategoryIdRef> for &'a CategoryIdRef
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 CategoryIdRef
impl Ord for CategoryIdRef
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 CategoryIdRef
impl PartialEq for CategoryIdRef
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 PartialOrd for CategoryIdRef
impl PartialOrd for CategoryIdRef
source§fn partial_cmp(&self, other: &CategoryIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &CategoryIdRef) -> 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 CategoryIdRef
Available on crate feature serde
only.
impl Serialize for CategoryIdRef
Available on crate feature
serde
only.source§impl ToOwned for CategoryIdRef
impl ToOwned for CategoryIdRef
§type Owned = CategoryId
type Owned = CategoryId
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, 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
.source§impl<'zf> ZeroFrom<'zf, CategoryIdRef> for &'zf CategoryIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, CategoryIdRef> for &'zf CategoryIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf CategoryIdRef) -> Self
fn zero_from(other: &'zf CategoryIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.