[][src]Struct twitchchat::messages::Notice

pub struct Notice<'t> {
    pub tags: Tags<'t>,
    pub channel: Cow<'t, str>,
    pub message: Cow<'t, str>,
}

General notices from the server.

Fields

tags: Tags<'t>

The tags attached to this message

channel: Cow<'t, str>

The channel this event happened on

message: Cow<'t, str>

The message from the server

Implementations

impl<'t> Notice<'t>[src]

pub fn msg_id(&'t self) -> Option<MessageId<'t>>[src]

A message ID string. Can be used for i18ln.

Valid values: see Twitch IRC: msg-id Tags.

Returns None if this tag wasn't found on the message

Trait Implementations

impl<'t> AsOwned for Notice<'t>[src]

type Owned = Notice<'static>

The owned type

impl<'t> Clone for Notice<'t>[src]

impl<'t> Debug for Notice<'t>[src]

impl<'de, 't> Deserialize<'de> for Notice<'t>[src]

impl<'a: 't, 't> Extract<'a, &'a Notice<'t>> for &'a AllCommands<'t>[src]

impl<'t> From<Notice<'t>> for AllCommands<'t>[src]

impl<'a: 't, 't> Parse<&'a Message<'t>> for Notice<'t>[src]

impl<'t> PartialEq<Notice<'t>> for Notice<'t>[src]

impl<'t> Serialize for Notice<'t>[src]

impl<'t> StructuralPartialEq for Notice<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for Notice<'t>

impl<'t> Send for Notice<'t>

impl<'t> Sync for Notice<'t>

impl<'t> Unpin for Notice<'t>

impl<'t> UnwindSafe for Notice<'t>

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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.