#[non_exhaustive]pub enum Reward {
Emote {
group_id: String,
id: EmoteId,
reward_level: i64,
token: Option<String>,
set_id: Option<EmoteSetId>,
},
Badge {
badge_id: ChatBadgeId,
group_id: String,
id: String,
image_url: String,
reward_level: i64,
},
}
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Available on crate features
pubsub
and unsupported
only.Expand description
A reward
Variants (Non-exhaustive)§
This enum is marked as 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
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Reward is a emote
Fields
§
group_id: String
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Group ID of emote
§
id: EmoteId
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043ID of emote
§
reward_level: i64
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Level that this emote is from
§
token: Option<String>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Token for this emote
§
set_id: Option<EmoteSetId>
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043ID of emote set
Badge
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Reward is a badge
Fields
§
badge_id: ChatBadgeId
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043ID of badge
§
group_id: String
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043Group ID of badge
§
id: String
👎Deprecated since 0.7.0: use
EventSub
instead, see https://discuss.dev.twitch.com/t/legacy-pubsub-deprecation-and-shutdown-timeline/58043ID of badge in this object
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Reward
impl<'de> Deserialize<'de> for Reward
Source§fn 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
impl Eq for Reward
impl StructuralPartialEq for Reward
Auto Trait Implementations§
impl Freeze for Reward
impl RefUnwindSafe for Reward
impl Send for Reward
impl Sync for Reward
impl Unpin for Reward
impl UnwindSafe for Reward
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more