[][src]Struct ttv_chat::messages::UserState

pub struct UserState<'a> { /* fields omitted */ }

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

Implementations

impl<'a> UserState<'a>[src]

pub fn raw(&self) -> &str[src]

Get the raw message

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

Get a view of parsable tags

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

Channel this event happened on

pub fn badge_info(&self) -> Vec<Badge<'_>>[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 is_moderator(&self) -> bool[src]

Whether this user is a moderator

Trait Implementations

impl<'a> Clone for UserState<'a>[src]

impl<'a> Debug for UserState<'a>[src]

impl<'a> From<UserState<'a>> for Commands<'a>[src]

impl<'a> FromIrcMessage<'a> for UserState<'a>[src]

type Error = MessageError

An error returned if this message could not be parsed.

fn into_inner(self) -> MaybeOwned<'a>[src]

Consumes the message, returning the raw MaybeOwned<'_>

impl<'a> IntoOwned<'a> for UserState<'a>[src]

type Output = UserState<'static>

The output type

impl<'a> PartialEq<UserState<'a>> for UserState<'a>[src]

impl<'a> StructuralPartialEq for UserState<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for UserState<'a>

impl<'a> Send for UserState<'a>

impl<'a> Sync for UserState<'a>

impl<'a> Unpin for UserState<'a>

impl<'a> UnwindSafe for UserState<'a>

Blanket Implementations

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

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

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

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

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

impl<'a, T> IntoIrcMessage<'a> for T where
    T: 'a + FromIrcMessage<'a>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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.