Struct twitch_api2::types::Nickname
source · [−]#[repr(transparent)]pub struct Nickname(_);
Expand description
A nickname, not capitalized.
Implementations
sourceimpl Nickname
impl Nickname
sourcepub fn into_boxed_ref(self) -> Box<NicknameRef>
pub fn into_boxed_ref(self) -> Box<NicknameRef>
Converts this Nickname
into a Box
<
NicknameRef
>
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 = NicknameRef>
Trait Implementations
sourceimpl AsRef<NicknameRef> for Nickname
impl AsRef<NicknameRef> for Nickname
sourcefn as_ref(&self) -> &NicknameRef
fn as_ref(&self) -> &NicknameRef
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Borrow<NicknameRef> for Nickname
impl Borrow<NicknameRef> for Nickname
sourcefn borrow(&self) -> &NicknameRef
fn borrow(&self) -> &NicknameRef
Immutably borrows from an owned value. Read more
sourceimpl Deref for Nickname
impl Deref for Nickname
type Target = NicknameRef
type Target = NicknameRef
The resulting type after dereferencing.
sourceimpl<'de> Deserialize<'de> for Nickname
impl<'de> Deserialize<'de> for Nickname
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 From<&'_ NicknameRef> for Nickname
impl From<&'_ NicknameRef> for Nickname
sourcefn from(s: &NicknameRef) -> Self
fn from(s: &NicknameRef) -> Self
Converts to this type from the input type.
sourceimpl From<Box<NicknameRef, Global>> for Nickname
impl From<Box<NicknameRef, Global>> for Nickname
sourcefn from(r: Box<NicknameRef>) -> Self
fn from(r: Box<NicknameRef>) -> Self
Converts to this type from the input type.
sourceimpl<'a> From<Cow<'a, NicknameRef>> for Nickname
impl<'a> From<Cow<'a, NicknameRef>> for Nickname
sourcefn from(r: Cow<'a, NicknameRef>) -> Self
fn from(r: Cow<'a, NicknameRef>) -> Self
Converts to this type from the input type.
sourceimpl From<Nickname> for Box<NicknameRef>
impl From<Nickname> for Box<NicknameRef>
sourceimpl<'a> From<Nickname> for Cow<'a, NicknameRef>
impl<'a> From<Nickname> for Cow<'a, NicknameRef>
sourceimpl PartialEq<&'_ NicknameRef> for Nickname
impl PartialEq<&'_ NicknameRef> for Nickname
sourceimpl PartialEq<Nickname> for NicknameRef
impl PartialEq<Nickname> for NicknameRef
sourceimpl PartialEq<Nickname> for &NicknameRef
impl PartialEq<Nickname> for &NicknameRef
sourceimpl PartialEq<Nickname> for Box<NicknameRef>
impl PartialEq<Nickname> for Box<NicknameRef>
sourceimpl PartialEq<NicknameRef> for Nickname
impl PartialEq<NicknameRef> for Nickname
impl Eq for Nickname
Auto Trait Implementations
impl RefUnwindSafe for Nickname
impl Send for Nickname
impl Sync for Nickname
impl Unpin for Nickname
impl UnwindSafe for Nickname
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