Struct twitch_irc::message::TwitchUserBasics  
source · [−]Expand description
Set of information describing the basic details of a Twitch user.
Fields
id: StringThe user’s unique ID, e.g. 103973901
login: StringThe 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: StringDisplay 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
sourceimpl Clone for TwitchUserBasics
 
impl Clone for TwitchUserBasics
sourcefn clone(&self) -> TwitchUserBasics
 
fn clone(&self) -> TwitchUserBasics
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for TwitchUserBasics
 
impl Debug for TwitchUserBasics
sourceimpl<'de> Deserialize<'de> for TwitchUserBasics
 
impl<'de> Deserialize<'de> for TwitchUserBasics
sourcefn 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>,
sourceimpl PartialEq<TwitchUserBasics> for TwitchUserBasics
 
impl PartialEq<TwitchUserBasics> for TwitchUserBasics
sourcefn eq(&self, other: &TwitchUserBasics) -> bool
 
fn eq(&self, other: &TwitchUserBasics) -> bool
sourceimpl Serialize for TwitchUserBasics
 
impl Serialize for TwitchUserBasics
impl Eq for TwitchUserBasics
impl StructuralEq for TwitchUserBasics
impl StructuralPartialEq for TwitchUserBasics
Auto Trait Implementations
impl RefUnwindSafe for TwitchUserBasics
impl Send for TwitchUserBasics
impl Sync for TwitchUserBasics
impl Unpin for TwitchUserBasics
impl UnwindSafe for TwitchUserBasics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
sourceimpl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.