pub struct TwitchUserBasics {
pub id: String,
pub login: String,
pub name: String,
}
Expand description
Set of information describing the basic details of a Twitch user.
Fields§
§id: String
The user’s unique ID, e.g. 103973901
login: String
The user’s login name. For many users, this is simply the lowercased version of their
(display) name, but there are also many users where there is no direct relation between
login
and name
.
A Twitch user can change their login
and name
while still keeping their id
constant.
For this reason, you should always prefer to use the id
to uniquely identify a user, while
login
and name
are variable properties for them.
The login
name is used in many places to refer to users, e.g. in the URL for their channel page,
or also in almost all places on the Twitch IRC interface (e.g. when sending a message to a
channel, you specify the channel by its login name instead of ID).
name: String
Display name of the user. When possible a user should be referred to using this name in user-facing contexts.
This value is never used to uniquely identify a user, and you
should avoid making assumptions about the format of this value.
For example, the name
can contain non-ascii characters, it can contain spaces and
it can have spaces at the start and end (albeit rare).
Trait Implementations§
Source§impl Clone for TwitchUserBasics
impl Clone for TwitchUserBasics
Source§fn clone(&self) -> TwitchUserBasics
fn clone(&self) -> TwitchUserBasics
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TwitchUserBasics
impl Debug for TwitchUserBasics
Source§impl<'de> Deserialize<'de> for TwitchUserBasics
impl<'de> Deserialize<'de> for TwitchUserBasics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for TwitchUserBasics
impl PartialEq for TwitchUserBasics
Source§impl Serialize for TwitchUserBasics
impl Serialize for TwitchUserBasics
impl Eq for TwitchUserBasics
impl StructuralPartialEq for TwitchUserBasics
Auto Trait Implementations§
impl Freeze for TwitchUserBasics
impl RefUnwindSafe for TwitchUserBasics
impl Send for TwitchUserBasics
impl Sync for TwitchUserBasics
impl Unpin for TwitchUserBasics
impl UnwindSafe for TwitchUserBasics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more