[][src]Enum twitch_oauth2::Scope

#[non_exhaustive]pub enum Scope {
    AnalyticsReadExtensions,
    AnalyticsReadGames,
    BitsRead,
    ChannelSubscriptions,
    ChannelEditCommercial,
    ChannelManageBroadcast,
    ChannelManageExtension,
    ChannelModerate,
    ChannelReadHypeTrain,
    ChannelReadRedemptions,
    ChannelManageRedemptions,
    ChannelReadSubscriptions,
    ChatEdit,
    ChatRead,
    ClipsEdit,
    ModerationRead,
    UserEdit,
    UserEditBroadcast,
    UserEditFollows,
    UserReadBroadcast,
    UserReadEmail,
    UserReadStreamKey,
    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 your extensions.

analytics:read:extensions

AnalyticsReadGames

View analytics data for your games.

analytics:read:games

BitsRead

View bits information for your channel.

bits:read

ChannelSubscriptions

[DEPRECATED] Read all subscribers to your channel.

channel_subscriptions

ChannelEditCommercial

Start a commercial on authorized channels

channel:edit:commercial

ChannelManageBroadcast

Manage your channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.

channel:manage:broadcast

ChannelManageExtension

Manage your channel’s extension configuration, including activating extensions.

channel:manage:extension

ChannelModerate

Perform moderation actions in a channel

channel:moderate

ChannelReadHypeTrain

Read hype trains

channel:read:hype_train

ChannelReadRedemptions

View your channel points custom reward redemptions

channel:read:redemptions

ChannelManageRedemptions

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

channel:manage:redemptions

ChannelReadSubscriptions

Get a list of all subscribers to your channel and check if a user is subscribed to your channel

channel:read:subscriptions

ChatEdit

Send live Stream Chat and Rooms messages

chat:edit

ChatRead

View live Stream Chat and Rooms messages

chat:read

ClipsEdit

Create and edit clips as a specific user.

clips:edit

ModerationRead

View your 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 your follows.

user:edit:follows

UserReadBroadcast

View your broadcasting configuration, including extension configurations.

user:read:broadcast

UserReadEmail

Read authorized user's email address.

user:read:email

UserReadStreamKey

Read authorized user’s stream key.

user:read:stream_key

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]