[][src]Struct twitchchat::commands::UserState

pub struct UserState { /* fields omitted */ }

Identifies a user's chat settings or properties (e.g., chat color)..

Methods

impl UserState[src]

pub fn tags(&self) -> &Tags[src]

IRC tags

pub fn channel(&self) -> &Channel[src]

Channel this even happened on

impl UserState[src]

pub fn badge_info(&self) -> Vec<BadgeInfo>[src]

Metadata related to the chat badges

Currently used only for subscriber, to indicate the exact number of months the user has been a subscriber.

pub fn badges(&self) -> Vec<Badge>[src]

Badges attached to this message

pub fn color(&self) -> Option<Color>[src]

The user's color, if set

pub fn display_name(&self) -> Option<&str>[src]

The user's display name, if set

pub fn emotes(&self) -> Vec<Emotes>[src]

Emotes attached to this message

pub fn moderator(&self) -> bool[src]

Whether this user is a moderator

Trait Implementations

impl Tag for UserState[src]

impl PartialEq<UserState> for UserState[src]

impl Clone for UserState[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl From<Message> for UserState[src]

impl Debug for UserState[src]

impl Serialize for UserState[src]

impl<'de> Deserialize<'de> for UserState[src]

Auto Trait Implementations

impl Send for UserState

impl Sync for UserState

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]