[−][src]Struct ttv_chat::messages::UserState
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 from_irc(
msg: IrcMessage<'a>
) -> Result<UserState<'a>, <UserState<'a> as FromIrcMessage<'a>>::Error>
[src]
msg: IrcMessage<'a>
) -> Result<UserState<'a>, <UserState<'a> as FromIrcMessage<'a>>::Error>
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
fn into_owned(self) -> <UserState<'a> as IntoOwned<'a>>::Output
[src]
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]
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<'a, T> IntoIrcMessage<'a> for T where
T: 'a + FromIrcMessage<'a>,
[src]
T: 'a + FromIrcMessage<'a>,
fn into_irc(self) -> IrcMessage<'a>
[src]
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>,