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

pub struct UserState {
    pub channel: String,
    // some fields omitted
}

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

Fields

channel: String

Methods

impl UserState[src]

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

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

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

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

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

Trait Implementations

impl Tag for UserState[src]

impl PartialEq<UserState> for UserState[src]

impl From<Message> 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 Debug for UserState[src]

Auto Trait Implementations

impl Send for UserState

impl Sync for UserState

Blanket Implementations

impl<T> Tagged for T where
    T: Tag
[src]

fn get_as_bool(&self, key: &str) -> bool[src]

Tries to get the value for key as a bool, defaults to false if not found

fn get_parsed<E>(&self, key: &str) -> Option<E> where
    E: FromStr
[src]

Tries to parse (with FromStr::from_str) the value at key

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T