[−][src]Enum twitch_oauth2::Scope
Scopes for twitch.
Variants (Non-exhaustive)
View analytics data for your extensions.
analytics:read:extensions
View analytics data for your games.
analytics:read:games
View bits information for your channel.
bits:read
[DEPRECATED] Read all subscribers to your channel.
channel_subscriptions
Start a commercial on authorized channels
channel:edit:commercial
Manage your channel’s broadcast configuration, including updating channel configuration and managing stream markers and stream tags.
channel:manage:broadcast
Manage your channel’s extension configuration, including activating extensions.
channel:manage:extension
Perform moderation actions in a channel
channel:moderate
Read hype trains
channel:read:hype_train
View your channel points custom reward redemptions
channel:read:redemptions
Manage Channel Points custom rewards and their redemptions on a channel.
channel:manage:redemptions
Get a list of all subscribers to your channel and check if a user is subscribed to your channel
channel:read:subscriptions
Send live Stream Chat and Rooms messages
chat:edit
View live Stream Chat and Rooms messages
chat:read
Create and edit clips as a specific user.
clips:edit
View your channel's moderation data including Moderators, Bans, Timeouts and Automod settings
moderation:read
Manage a user object.
user:edit
Edit your channel's broadcast configuration, including extension configuration. (This scope implies user:read:broadcast capability.)
user:edit:broadcast
Edit your follows.
user:edit:follows
View your broadcasting configuration, including extension configurations.
user:read:broadcast
Read authorized user's email address.
user:read:email
Read authorized user’s stream key.
user:read:stream_key
Send whisper messages.
whispers:edit
View your whisper messages.
whispers:read
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]
C: Into<Cow<'static, str>>,
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]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for Scope
[src]
impl StructuralPartialEq for Scope
[src]
Auto Trait Implementations
impl RefUnwindSafe for Scope
[src]
impl Send for Scope
[src]
impl Sync for Scope
[src]
impl Unpin for Scope
[src]
impl UnwindSafe for Scope
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,