[][src]Enum twitchchat::messages::SubPlan

#[non_exhaustive]pub enum SubPlan<'a> {
    Prime,
    Tier1,
    Tier2,
    Tier3,
    Unknown(&'a str),
}

A paid subscription ot the channel

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.
Prime

A Prime subscription

Tier1

A Tier-1 subscription (currently $4.99)

Tier2

A Tier-2 subscription (currently $9.99)

Tier3

A Tier-3 subscription (currently $24.99)

Unknown(&'a str)

An unknown tier -- this will catch and future tiers if they are added.

Trait Implementations

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

impl<'a> Copy for SubPlan<'a>[src]

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

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

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for SubPlan<'a>

impl<'a> Send for SubPlan<'a>

impl<'a> Sync for SubPlan<'a>

impl<'a> Unpin for SubPlan<'a>

impl<'a> UnwindSafe for SubPlan<'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.