Enum twitch_oauth2::scopes::Scope[][src]

#[non_exhaustive]pub enum Scope {
    AnalyticsReadExtensions,
    AnalyticsReadGames,
    BitsRead,
    ChannelEditCommercial,
    ChannelManageBroadcast,
    ChannelManageExtensions,
    ChannelManageRedemptions,
    ChannelManageVideos,
    ChannelModerate,
    ChannelReadEditors,
    ChannelReadHypeTrain,
    ChannelReadRedemptions,
    ChannelReadStreamKey,
    ChannelReadSubscriptions,
    ChannelSubscriptions,
    ChatEdit,
    ChatRead,
    ClipsEdit,
    ModerationRead,
    UserEdit,
    UserEditBroadcast,
    UserEditFollows,
    UserManageBlockedUsers,
    UserReadBlockedUsers,
    UserReadBroadcast,
    UserReadEmail,
    WhispersEdit,
    WhispersRead,
    Other(Cow<'static, str>),
}

Variants (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

ChannelManageRedemptions

Manage Channel Points custom rewards and their redemptions on a channel.

channel:manage:redemptions

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

ChannelReadHypeTrain

View Hype Train information for a channel.

channel:read:hype_train

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

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

WhispersEdit

Send whisper messages.

whispers:edit

WhispersRead

View your whisper messages.

whispers:read

Other(Cow<'static, str>)

Other scope that is not implemented.

Implementations

impl Scope[src]

pub fn all() -> Vec<Scope>[src]

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

pub fn parse<C>(s: C) -> Scope where
    C: Into<Cow<'static, str>>, 
[src]

Make a scope from a cow string

impl Scope[src]

pub fn as_oauth_scope(&self) -> Scope[src]

Get Scope as an oauth2 Scope

Trait Implementations

impl Clone for Scope[src]

impl Debug for Scope[src]

impl<'de> Deserialize<'de> for Scope[src]

impl Display for Scope[src]

impl Eq for Scope[src]

impl From<Scope> for Scope[src]

impl From<String> for Scope[src]

impl PartialEq<Scope> for Scope[src]

impl Serialize for Scope[src]

impl StructuralEq for Scope[src]

impl StructuralPartialEq for Scope[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]