[−][src]Struct twitch_irc::message::GlobalUserStateMessage
Sent once directly after successful login, containing properties for the logged in user.
This message is not sent if you log into chat as an anonymous user.
Fields
user_id: StringID of the logged in user
user_name: StringName (also called display name) of the logged in user
badge_info: Vec<Badge>Metadata related to the chat badges in the badges tag.
Currently this is used only for subscriber, to indicate the exact number of months
the user has been a subscriber. This number is finer grained than the version number in
badges. For example, a user who has been a subscriber for 45 months would have a
badge_info value of 45 but might have a badges version number for only 3 years.
However note that subscriber badges are not sent on GLOBALUSERSTATE messages,
so you can realistically expect this to be empty unless Twitch adds a new feature.
badges: Vec<Badge>List of badges the logged in user has in all channels.
emote_sets: HashSet<u64>List of emote set IDs the logged in user has available. This always contains at least 0.
name_color: Option<RGBColor>What name color the logged in user has chosen. The same color is used in all channels.
source: IRCMessageThe message that this GlobalUserStateMessage was parsed from.
Trait Implementations
impl Clone for GlobalUserStateMessage[src]
fn clone(&self) -> GlobalUserStateMessage[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for GlobalUserStateMessage[src]
impl From<GlobalUserStateMessage> for IRCMessage[src]
fn from(msg: GlobalUserStateMessage) -> IRCMessage[src]
impl PartialEq<GlobalUserStateMessage> for GlobalUserStateMessage[src]
fn eq(&self, other: &GlobalUserStateMessage) -> bool[src]
fn ne(&self, other: &GlobalUserStateMessage) -> bool[src]
impl StructuralPartialEq for GlobalUserStateMessage[src]
impl TryFrom<IRCMessage> for GlobalUserStateMessage[src]
type Error = ServerMessageParseError
The type returned in the event of a conversion error.
fn try_from(
source: IRCMessage
) -> Result<GlobalUserStateMessage, ServerMessageParseError>[src]
source: IRCMessage
) -> Result<GlobalUserStateMessage, ServerMessageParseError>
Auto Trait Implementations
impl RefUnwindSafe for GlobalUserStateMessage
impl Send for GlobalUserStateMessage
impl Sync for GlobalUserStateMessage
impl Unpin for GlobalUserStateMessage
impl UnwindSafe for GlobalUserStateMessage
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<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>,