AuthToken

Trait AuthToken 

Source
pub trait AuthToken: Headers + Clone {
    // Required method
    fn scopes(&self) -> &ScopeSet;
}
Expand description

Represents a authorization token of some type that can be sent as a header to a twitch endpoint.

Required Methods§

Source

fn scopes(&self) -> &ScopeSet

Get the set of scopes that this token has associated with it

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A> AuthToken for Rc<A>
where A: AuthToken,

Source§

fn scopes(&self) -> &ScopeSet

Source§

impl<A> AuthToken for Arc<A>
where A: AuthToken,

Source§

fn scopes(&self) -> &ScopeSet

Implementors§