[][src]Enum twitchchat::messages::NoticeType

#[non_exhaustive]pub enum NoticeType<'a> {
    Sub,
    Resub,
    SubGift,
    AnonSubGift,
    SubMysteryGift,
    GiftPaidUpgrade,
    RewardGift,
    AnonGiftPaidUpgrade,
    Raid,
    Unraid,
    Ritual,
    BitsBadgeTier,
    Unknown(&'a str),
}

The kind of notice it was, retrieved via UserNotice::msg_id()

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Sub

This was a subscription notice

Resub

This was a re-subscription notice

SubGift

This was a gifted subscription

AnonSubGift

This was an anonymous gifted subscription

SubMysteryGift

This was a mystery gift for the subscription

GiftPaidUpgrade

Gift for a paid upgrade

RewardGift

A reward gift

AnonGiftPaidUpgrade

An anonymous gift for paid upgrade

Raid

A raid

Unraid

A canceled raid

Ritual

A ritual

BitsBadgeTier

A the tier that the bits were part of

Unknown(&'a str)

An unknown notice type (a catch-all)

Trait Implementations

impl<'a> Clone for NoticeType<'a>[src]

impl<'a> Debug for NoticeType<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for NoticeType<'a>[src]

impl<'a> Hash for NoticeType<'a>[src]

impl<'a> PartialEq<NoticeType<'a>> for NoticeType<'a>[src]

impl<'a> Serialize for NoticeType<'a>[src]

impl<'a> StructuralPartialEq for NoticeType<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for NoticeType<'a>

impl<'a> Send for NoticeType<'a>

impl<'a> Sync for NoticeType<'a>

impl<'a> Unpin for NoticeType<'a>

impl<'a> UnwindSafe for NoticeType<'a>

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.