pub enum Subscription {
Show 38 variants
UserUpdate,
ChannelFollow,
ChannelRaid,
ChannelUpdate,
ChannelNewSubscription,
ChannelSubscriptionEnd,
ChannelGiftSubscription,
ChannelResubscription,
ChannelCheer,
ChannelPointsCustomRewardRedeem,
ChannelPointsAutoRewardRedeem,
ChannelPollBegin,
ChannelPollProgress,
ChannelPollEnd,
ChannelPredictionBegin,
ChannelPredictionProgress,
ChannelPredictionLock,
ChannelPredictionEnd,
ChannelGoalBegin,
ChannelGoalProgress,
ChannelGoalEnd,
ChannelHypeTrainBegin,
ChannelHypeTrainProgress,
ChannelHypeTrainEnd,
ChannelShoutoutCreate,
ChannelShoutoutReceive,
ChannelMessageDeleted,
ChatMessage,
AdBreakBegin,
PermissionBanTimeoutUser,
PermissionDeleteMessage,
PermissionReadChatters,
PermissionReadModerator,
PermissionManageRewards,
PermissionSendAnnouncements,
PermissionIRCRead,
PermissionIRCWrite,
Custom((String, String, EventSubscription)),
}Variants§
UserUpdate
ChannelFollow
ChannelRaid
ChannelUpdate
ChannelNewSubscription
ChannelSubscriptionEnd
ChannelGiftSubscription
ChannelResubscription
ChannelCheer
ChannelPointsCustomRewardRedeem
ChannelPointsAutoRewardRedeem
ChannelPollBegin
ChannelPollProgress
ChannelPollEnd
ChannelPredictionBegin
ChannelPredictionProgress
ChannelPredictionLock
ChannelPredictionEnd
ChannelGoalBegin
ChannelGoalProgress
ChannelGoalEnd
ChannelHypeTrainBegin
ChannelHypeTrainProgress
ChannelHypeTrainEnd
ChannelShoutoutCreate
ChannelShoutoutReceive
ChannelMessageDeleted
ChatMessage
AdBreakBegin
PermissionBanTimeoutUser
PermissionDeleteMessage
PermissionReadChatters
PermissionReadModerator
PermissionManageRewards
PermissionSendAnnouncements
PermissionIRCRead
PermissionIRCWrite
Custom((String, String, EventSubscription))
Implementations§
Source§impl Subscription
impl Subscription
pub fn is_permission_subscription(&self) -> bool
pub fn from_string(t: &str) -> Option<Subscription>
pub fn from_scope(t: &str) -> Option<Subscription>
pub fn tag(&self) -> String
pub fn required_scope(&self) -> String
pub fn version(&self) -> String
pub fn construct_data<S: Into<String>, T: Into<String>>( &self, session_id: &str, broadcaster_account_id: S, token_user_id: T, ) -> Option<EventSubscription>
Trait Implementations§
Source§impl Clone for Subscription
impl Clone for Subscription
Source§fn clone(&self) -> Subscription
fn clone(&self) -> Subscription
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Subscription
impl Debug for Subscription
Source§impl PartialEq for Subscription
impl PartialEq for Subscription
impl StructuralPartialEq for Subscription
Auto Trait Implementations§
impl Freeze for Subscription
impl RefUnwindSafe for Subscription
impl Send for Subscription
impl Sync for Subscription
impl Unpin for Subscription
impl UnwindSafe for Subscription
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