[−][src]Struct twitch_irc::message::TwitchUserBasics
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
impl Clone for TwitchUserBasics
[src]
pub fn clone(&self) -> TwitchUserBasics
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TwitchUserBasics
[src]
impl PartialEq<TwitchUserBasics> for TwitchUserBasics
[src]
pub fn eq(&self, other: &TwitchUserBasics) -> bool
[src]
pub fn ne(&self, other: &TwitchUserBasics) -> bool
[src]
impl StructuralPartialEq for TwitchUserBasics
[src]
Auto Trait Implementations
impl RefUnwindSafe for TwitchUserBasics
[src]
impl Send for TwitchUserBasics
[src]
impl Sync for TwitchUserBasics
[src]
impl Unpin for TwitchUserBasics
[src]
impl UnwindSafe for TwitchUserBasics
[src]
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,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,