Struct twitch_api2::types::CategoryId
source · [−]#[repr(transparent)]pub struct CategoryId(_);
Expand description
A game or category ID
Implementations
sourceimpl CategoryId
impl CategoryId
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.
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Unwraps the underlying String
value
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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for CategoryId
impl<'a> 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<'a> Display for CategoryId
impl<'a> 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 PartialEq<&'_ CategoryIdRef> for CategoryId
impl PartialEq<&'_ CategoryIdRef> for CategoryId
sourceimpl PartialEq<Box<CategoryIdRef, Global>> for CategoryId
impl PartialEq<Box<CategoryIdRef, Global>> for CategoryId
sourceimpl PartialEq<CategoryId> for CategoryId
impl PartialEq<CategoryId> for CategoryId
sourceimpl PartialEq<CategoryId> for CategoryIdRef
impl PartialEq<CategoryId> for CategoryIdRef
sourceimpl PartialEq<CategoryId> for &CategoryIdRef
impl PartialEq<CategoryId> for &CategoryIdRef
sourceimpl PartialEq<CategoryId> for Box<CategoryIdRef>
impl PartialEq<CategoryId> for Box<CategoryIdRef>
sourceimpl PartialEq<CategoryIdRef> for CategoryId
impl PartialEq<CategoryIdRef> for CategoryId
sourceimpl Serialize for CategoryId
impl Serialize for CategoryId
impl Eq 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more