Enum twitch_api2::pubsub::hypetrain::Reward[][src]

#[non_exhaustive]pub enum Reward {
    Emote {
        group_id: String,
        id: String,
        reward_level: i64,
        token: Option<String>,
        set_id: Option<String>,
    },
    Badge {
        badge_id: String,
        group_id: String,
        id: String,
        image_url: String,
        reward_level: i64,
    },
}
This is supported on crate features pubsub and unsupported only.

A reward

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

Reward is a emote

Fields of Emote

group_id: String

Group ID of emote

id: String

ID of emote

reward_level: i64

Level that this emote is from

token: Option<String>

Token for this emote

set_id: Option<String>

ID of emote set

Badge

Reward is a badge

Fields of Badge

badge_id: String

ID of badge

group_id: String

Group ID of badge

id: String

ID of badge

image_url: String

URL to image of badge

reward_level: i64

Level that this badge is from

Trait Implementations

impl Clone for Reward[src]

impl Debug for Reward[src]

impl<'de> Deserialize<'de> for Reward[src]

impl Eq for Reward[src]

impl PartialEq<Reward> for Reward[src]

impl Serialize for Reward[src]

impl StructuralEq for Reward[src]

impl StructuralPartialEq for Reward[src]

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

impl<T> Instrument 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>, 

impl<T> WithSubscriber for T[src]