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

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.

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>)

Tuple Fields

0: 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

Get the scope as a borrowed string.

Trait Implementations

Immutably borrows from an owned value. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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