Enum twitch_api::pubsub::Topics
source · [−]#[non_exhaustive]
pub enum Topics {
Show 16 variants
AutoModQueue(AutoModQueue),
CommunityPointsChannelV1(CommunityPointsChannelV1),
ChannelBitsEventsV2(ChannelBitsEventsV2),
ChannelBitsBadgeUnlocks(ChannelBitsBadgeUnlocks),
ChannelCheerEventsPublicV1(ChannelCheerEventsPublicV1),
ChannelSubGiftsV1(ChannelSubGiftsV1),
ChatModeratorActions(ChatModeratorActions),
ChannelPointsChannelV1(ChannelPointsChannelV1),
ChannelSubscribeEventsV1(ChannelSubscribeEventsV1),
VideoPlayback(VideoPlayback),
VideoPlaybackById(VideoPlaybackById),
HypeTrainEventsV1(HypeTrainEventsV1),
HypeTrainEventsV1Rewards(HypeTrainEventsV1Rewards),
Following(Following),
Raid(Raid),
UserModerationNotifications(UserModerationNotifications),
}
Available on crate feature
pubsub
only.Expand description
All possible topics
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.
AutoModQueue(AutoModQueue)
AutoMod flags a message as potentially inappropriate, and when a moderator takes action on a message.
CommunityPointsChannelV1(CommunityPointsChannelV1)
Available on crate feature
unsupported
only.A user redeems an reward using channel points.
ChannelBitsEventsV2(ChannelBitsEventsV2)
Anyone cheers in a specified channel.
ChannelBitsBadgeUnlocks(ChannelBitsBadgeUnlocks)
Anyone shares a bit badge in a specified channel.
ChannelCheerEventsPublicV1(ChannelCheerEventsPublicV1)
Available on crate feature
unsupported
only.A user redeems a cheer with shared rewards.
ChannelSubGiftsV1(ChannelSubGiftsV1)
Available on crate feature
unsupported
only.A user gifts subs.
ChatModeratorActions(ChatModeratorActions)
A moderator performs an action in the channel.
ChannelPointsChannelV1(ChannelPointsChannelV1)
A user redeems an reward using channel points.
ChannelSubscribeEventsV1(ChannelSubscribeEventsV1)
A subscription event happens in channel
VideoPlayback(VideoPlayback)
Available on crate feature
unsupported
only.Statistics about stream
VideoPlaybackById(VideoPlaybackById)
Available on crate feature
unsupported
only.Statistics about stream
HypeTrainEventsV1(HypeTrainEventsV1)
Available on crate feature
unsupported
only.A user redeems an reward using channel points.
HypeTrainEventsV1Rewards(HypeTrainEventsV1Rewards)
Available on crate feature
unsupported
only.A user redeems an reward using channel points.
Following(Following)
Available on crate feature
unsupported
only.A user follows the channel
Raid(Raid)
Available on crate feature
unsupported
only.A user raids the channel
UserModerationNotifications(UserModerationNotifications)
A user’s message held by AutoMod has been approved or denied.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Topics
impl<'de> Deserialize<'de> for Topics
sourcefn 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
sourceimpl From<AutoModQueue> for Topics
impl From<AutoModQueue> for Topics
sourcefn from(t: AutoModQueue) -> Self
fn from(t: AutoModQueue) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelBitsBadgeUnlocks> for Topics
impl From<ChannelBitsBadgeUnlocks> for Topics
sourcefn from(t: ChannelBitsBadgeUnlocks) -> Self
fn from(t: ChannelBitsBadgeUnlocks) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelBitsEventsV2> for Topics
impl From<ChannelBitsEventsV2> for Topics
sourcefn from(t: ChannelBitsEventsV2) -> Self
fn from(t: ChannelBitsEventsV2) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelCheerEventsPublicV1> for Topics
Available on crate feature unsupported
only.
impl From<ChannelCheerEventsPublicV1> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: ChannelCheerEventsPublicV1) -> Self
fn from(t: ChannelCheerEventsPublicV1) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelPointsChannelV1> for Topics
impl From<ChannelPointsChannelV1> for Topics
sourcefn from(t: ChannelPointsChannelV1) -> Self
fn from(t: ChannelPointsChannelV1) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelSubGiftsV1> for Topics
Available on crate feature unsupported
only.
impl From<ChannelSubGiftsV1> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: ChannelSubGiftsV1) -> Self
fn from(t: ChannelSubGiftsV1) -> Self
Converts to this type from the input type.
sourceimpl From<ChannelSubscribeEventsV1> for Topics
impl From<ChannelSubscribeEventsV1> for Topics
sourcefn from(t: ChannelSubscribeEventsV1) -> Self
fn from(t: ChannelSubscribeEventsV1) -> Self
Converts to this type from the input type.
sourceimpl From<ChatModeratorActions> for Topics
impl From<ChatModeratorActions> for Topics
sourcefn from(t: ChatModeratorActions) -> Self
fn from(t: ChatModeratorActions) -> Self
Converts to this type from the input type.
sourceimpl From<CommunityPointsChannelV1> for Topics
Available on crate feature unsupported
only.
impl From<CommunityPointsChannelV1> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: CommunityPointsChannelV1) -> Self
fn from(t: CommunityPointsChannelV1) -> Self
Converts to this type from the input type.
sourceimpl From<HypeTrainEventsV1> for Topics
Available on crate feature unsupported
only.
impl From<HypeTrainEventsV1> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: HypeTrainEventsV1) -> Self
fn from(t: HypeTrainEventsV1) -> Self
Converts to this type from the input type.
sourceimpl From<HypeTrainEventsV1Rewards> for Topics
Available on crate feature unsupported
only.
impl From<HypeTrainEventsV1Rewards> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: HypeTrainEventsV1Rewards) -> Self
fn from(t: HypeTrainEventsV1Rewards) -> Self
Converts to this type from the input type.
sourceimpl From<UserModerationNotifications> for Topics
impl From<UserModerationNotifications> for Topics
sourcefn from(t: UserModerationNotifications) -> Self
fn from(t: UserModerationNotifications) -> Self
Converts to this type from the input type.
sourceimpl From<VideoPlayback> for Topics
Available on crate feature unsupported
only.
impl From<VideoPlayback> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: VideoPlayback) -> Self
fn from(t: VideoPlayback) -> Self
Converts to this type from the input type.
sourceimpl From<VideoPlaybackById> for Topics
Available on crate feature unsupported
only.
impl From<VideoPlaybackById> for Topics
Available on crate feature
unsupported
only.sourcefn from(t: VideoPlaybackById) -> Self
fn from(t: VideoPlaybackById) -> Self
Converts to this type from the input type.
impl Eq for Topics
impl StructuralEq for Topics
impl StructuralPartialEq for Topics
Auto Trait Implementations
impl RefUnwindSafe for Topics
impl Send for Topics
impl Sync for Topics
impl Unpin for Topics
impl UnwindSafe for Topics
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.