Struct twitch_irc::message::NoticeMessage  
source · [−]pub struct NoticeMessage {
    pub channel_login: Option<String>,
    pub message_text: String,
    pub message_id: Option<String>,
    pub source: IRCMessage,
}Expand description
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: StringMessage 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: IRCMessageThe message that this NoticeMessage was parsed from.
Trait Implementations
sourceimpl Clone for NoticeMessage
 
impl Clone for NoticeMessage
sourcefn clone(&self) -> NoticeMessage
 
fn clone(&self) -> NoticeMessage
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 NoticeMessage
 
impl Debug for NoticeMessage
sourceimpl<'de> Deserialize<'de> for NoticeMessage
 
impl<'de> Deserialize<'de> for NoticeMessage
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<NoticeMessage> for IRCMessage
 
impl From<NoticeMessage> for IRCMessage
sourcefn from(msg: NoticeMessage) -> IRCMessage
 
fn from(msg: NoticeMessage) -> IRCMessage
Converts to this type from the input type.
sourceimpl PartialEq<NoticeMessage> for NoticeMessage
 
impl PartialEq<NoticeMessage> for NoticeMessage
sourcefn eq(&self, other: &NoticeMessage) -> bool
 
fn eq(&self, other: &NoticeMessage) -> bool
sourceimpl Serialize for NoticeMessage
 
impl Serialize for NoticeMessage
sourceimpl TryFrom<IRCMessage> for NoticeMessage
 
impl TryFrom<IRCMessage> for NoticeMessage
type Error = ServerMessageParseError
type Error = ServerMessageParseError
The type returned in the event of a conversion error.
sourcefn try_from(
    source: IRCMessage
) -> Result<NoticeMessage, ServerMessageParseError>
 
fn try_from(
    source: IRCMessage
) -> Result<NoticeMessage, ServerMessageParseError>
Performs the conversion.
impl Eq for NoticeMessage
impl StructuralEq for NoticeMessage
impl StructuralPartialEq for NoticeMessage
Auto Trait Implementations
impl RefUnwindSafe for NoticeMessage
impl Send for NoticeMessage
impl Sync for NoticeMessage
impl Unpin for NoticeMessage
impl UnwindSafe for NoticeMessage
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.