[−][src]Struct twitch_irc::message::TwitchUserBasics
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
impl Clone for TwitchUserBasics[src]
fn clone(&self) -> TwitchUserBasics[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for TwitchUserBasics[src]
impl PartialEq<TwitchUserBasics> for TwitchUserBasics[src]
fn eq(&self, other: &TwitchUserBasics) -> bool[src]
fn ne(&self, other: &TwitchUserBasics) -> bool[src]
impl StructuralPartialEq for TwitchUserBasics[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,