Struct twitch_irc::message::WhisperMessage  
source · [−]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,
}Expand description
A incoming whisper message (a private user-to-user message).
Fields
recipient_login: StringThe login name of the receiving user (the logged in user).
sender: TwitchUserBasicsUser details of the user that sent us this whisper (the sending user).
message_text: StringThe 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: IRCMessageThe message that this WhisperMessage was parsed from.
Trait Implementations
sourceimpl Clone for WhisperMessage
 
impl Clone for WhisperMessage
sourcefn clone(&self) -> WhisperMessage
 
fn clone(&self) -> WhisperMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl Debug for WhisperMessage
 
impl Debug for WhisperMessage
sourceimpl<'de> Deserialize<'de> for WhisperMessage
 
impl<'de> Deserialize<'de> for WhisperMessage
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<WhisperMessage> for IRCMessage
 
impl From<WhisperMessage> for IRCMessage
sourcefn from(msg: WhisperMessage) -> IRCMessage
 
fn from(msg: WhisperMessage) -> IRCMessage
Converts to this type from the input type.
sourceimpl PartialEq<WhisperMessage> for WhisperMessage
 
impl PartialEq<WhisperMessage> for WhisperMessage
sourcefn eq(&self, other: &WhisperMessage) -> bool
 
fn eq(&self, other: &WhisperMessage) -> bool
sourceimpl Serialize for WhisperMessage
 
impl Serialize for WhisperMessage
sourceimpl TryFrom<IRCMessage> for WhisperMessage
 
impl TryFrom<IRCMessage> for WhisperMessage
type Error = ServerMessageParseError
type Error = ServerMessageParseError
The type returned in the event of a conversion error.
sourcefn try_from(
    source: IRCMessage
) -> Result<WhisperMessage, ServerMessageParseError>
 
fn try_from(
    source: IRCMessage
) -> Result<WhisperMessage, ServerMessageParseError>
Performs the conversion.
impl Eq for WhisperMessage
impl StructuralEq for WhisperMessage
impl StructuralPartialEq for WhisperMessage
Auto Trait Implementations
impl RefUnwindSafe for WhisperMessage
impl Send for WhisperMessage
impl Sync for WhisperMessage
impl Unpin for WhisperMessage
impl UnwindSafe for WhisperMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.