[][src]Struct twitch_irc::message::NoticeMessage

pub struct NoticeMessage {
    pub channel_login: Option<String>,
    pub message_text: String,
    pub message_id: Option<String>,
    pub source: IRCMessage,
}

A user-facing notice sent by the server.

Fields

channel_login: Option<String>

The login name of the channel that this notice was sent to. There are cases where this is missing, for example when a NOTICE message is sent in response to a failed login attempt.

message_text: String

Message content of the notice. This is some user-friendly string, e.g. You are permanently banned from talking in <channel>.

message_id: Option<String>

If present, a computer-readable string identifying the class/type of notice. For example msg_banned. These message IDs are documented by Twitch here.

source: IRCMessage

The message that this NoticeMessage was parsed from.

Trait Implementations

impl Clone for NoticeMessage[src]

impl Debug for NoticeMessage[src]

impl From<NoticeMessage> for IRCMessage[src]

impl PartialEq<NoticeMessage> for NoticeMessage[src]

impl StructuralPartialEq for NoticeMessage[src]

impl TryFrom<IRCMessage> for NoticeMessage[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>,