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