[][src]Struct twitch_irc::message::WhisperMessage

pub struct WhisperMessage {
    pub recipient_login: String,
    pub sender: TwitchUserBasics,
    pub message_text: String,
    pub name_color: Option<RGBColor>,
    pub badges: Vec<Badge>,
    pub emotes: Vec<Emote>,
    pub source: IRCMessage,
}

A incoming whisper message (a private user-to-user message).

Fields

recipient_login: String

The login name of the receiving user (the logged in user).

sender: TwitchUserBasics

User details of the user that sent us this whisper (the sending user).

message_text: String

The text content of the message.

name_color: Option<RGBColor>

Name color of the sending user.

badges: Vec<Badge>

List of badges (that the sending user has) that should be displayed alongside the message.

emotes: Vec<Emote>

A list of emotes in this message. Each emote replaces a part of the message_text. These emotes are sorted in the order that they appear in the message.

source: IRCMessage

The message that this WhisperMessage was parsed from.

Trait Implementations

impl Clone for WhisperMessage[src]

impl Debug for WhisperMessage[src]

impl From<WhisperMessage> for IRCMessage[src]

impl PartialEq<WhisperMessage> for WhisperMessage[src]

impl StructuralPartialEq for WhisperMessage[src]

impl TryFrom<IRCMessage> for WhisperMessage[src]

type Error = ServerMessageParseError

The type returned in the event of a conversion error.

Auto Trait Implementations

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<T> Same<T> for T

type Output = T

Should always be Self

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,