Enum twitch_oauth2::scopes::Scope [−][src]
#[non_exhaustive]
pub enum Scope {
Show 45 variants
AnalyticsReadExtensions,
AnalyticsReadGames,
BitsRead,
ChannelEditCommercial,
ChannelManageBroadcast,
ChannelManageExtensions,
ChannelManagePolls,
ChannelManagePredictions,
ChannelManageRedemptions,
ChannelManageSchedule,
ChannelManageVideos,
ChannelModerate,
ChannelReadEditors,
ChannelReadGoals,
ChannelReadHypeTrain,
ChannelReadPolls,
ChannelReadPredictions,
ChannelReadRedemptions,
ChannelReadStreamKey,
ChannelReadSubscriptions,
ChannelSubscriptions,
ChatEdit,
ChatRead,
ClipsEdit,
ModerationRead,
ModeratorManageAutoMod,
ModeratorManageAutomodSettings,
ModeratorManageBannedUsers,
ModeratorManageBlockedTerms,
ModeratorManageChatSettings,
ModeratorReadAutomodSettings,
ModeratorReadBlockedTerms,
ModeratorReadChatSettings,
UserEdit,
UserEditBroadcast,
UserEditFollows,
UserManageBlockedUsers,
UserReadBlockedUsers,
UserReadBroadcast,
UserReadEmail,
UserReadFollows,
UserReadSubscriptions,
WhispersEdit,
WhispersRead,
Other(Cow<'static, str>),
}
Expand description
Scopes for twitch.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
AnalyticsReadExtensions
View analytics data for the Twitch Extensions owned by the authenticated account.
analytics:read:extensions
AnalyticsReadGames
View analytics data for the games owned by the authenticated account.
analytics:read:games
BitsRead
View Bits information for a channel.
bits:read
ChannelEditCommercial
Run commercials on a channel.
channel:edit:commercial
ChannelManageBroadcast
Manage a channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.
channel:manage:broadcast
ChannelManageExtensions
Manage a channel’s Extension configuration, including activating Extensions.
channel:manage:extensions
ChannelManagePolls
Manage a channel’s polls.
channel:manage:polls
ChannelManagePredictions
Manage of channel’s Channel Points Predictions
channel:manage:predictions
ChannelManageRedemptions
Manage Channel Points custom rewards and their redemptions on a channel.
channel:manage:redemptions
ChannelManageSchedule
Manage a channel’s stream schedule.
channel:manage:schedule
ChannelManageVideos
Manage a channel’s videos, including deleting videos.
channel:manage:videos
ChannelModerate
Perform moderation actions in a channel. The user requesting the scope must be a moderator in the channel.
channel:moderate
ChannelReadEditors
View a list of users with the editor role for a channel.
channel:read:editors
ChannelReadGoals
View Creator Goals for a channel.
channel:read:goals
ChannelReadHypeTrain
View Hype Train information for a channel.
channel:read:hype_train
ChannelReadPolls
View a channel’s polls.
channel:read:polls
ChannelReadPredictions
View a channel’s Channel Points Predictions.
channel:read:predictions
ChannelReadRedemptions
View Channel Points custom rewards and their redemptions on a channel.
channel:read:redemptions
ChannelReadStreamKey
View an authorized user’s stream key.
channel:read:stream_key
ChannelReadSubscriptions
View a list of all subscribers to a channel and check if a user is subscribed to a channel.
channel:read:subscriptions
ChannelSubscriptions
[DEPRECATED] Read all subscribers to your channel.
channel_subscriptions
ChatEdit
Send live stream chat and rooms messages.
chat:edit
ChatRead
View live stream chat and rooms messages.
chat:read
ClipsEdit
Manage Clips for a channel.
clips:edit
ModerationRead
View a channel’s moderation data including Moderators, Bans, Timeouts, and Automod settings.
moderation:read
ModeratorManageAutoMod
Manage messages held for review by AutoMod in channels where you are a moderator.
moderator:manage:automod
ModeratorManageAutomodSettings
Manage a broadcaster’s AutoMod settings
moderator:manage:automod_settings
ModeratorManageBannedUsers
Ban and unban users.
moderator:manage:banned_users
ModeratorManageBlockedTerms
Manage a broadcaster’s list of blocked terms.
moderator:manage:blocked_terms
ModeratorManageChatSettings
View a broadcaster’s chat room settings.
moderator:manage:chat_settings
ModeratorReadAutomodSettings
View a broadcaster’s AutoMod settings.
moderator:read:automod_settings
ModeratorReadBlockedTerms
View a broadcaster’s list of blocked terms.
moderator:read:blocked_terms
ModeratorReadChatSettings
View a broadcaster’s chat room settings.
moderator:read:chat_settings
UserEdit
Manage a user object.
user:edit
UserEditBroadcast
Edit your channel’s broadcast configuration, including extension configuration. (This scope implies user:read:broadcast capability.)
user:edit:broadcast
UserEditFollows
Edit a user’s follows.
user:edit:follows
UserManageBlockedUsers
Manage the block list of a user.
user:manage:blocked_users
UserReadBlockedUsers
View the block list of a user.
user:read:blocked_users
UserReadBroadcast
View a user’s broadcasting configuration, including Extension configurations.
user:read:broadcast
UserReadEmail
Read an authorized user’s email address.
user:read:email
UserReadFollows
View the list of channels a user follows.
user:read:follows
UserReadSubscriptions
View if an authorized user is subscribed to specific channels.
user:read:subscriptions
WhispersEdit
Send whisper messages.
whispers:edit
WhispersRead
View your whisper messages.
whispers:read
Other(Cow<'static, str>)
Other scope that is not implemented.
Implementations
Get a vec of all defined twitch Scopes.
Please note that this may not work for you, as some auth flows and “apis” don’t accept all scopes
Get a description for the token
Make a scope from a cow string
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Scope
impl UnwindSafe for Scope
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more