Struct twitch_oauth2::ValidatedToken [−][src]
pub struct ValidatedToken { pub client_id: ClientId, pub login: Option<String>, pub user_id: Option<String>, pub scopes: Option<Vec<Scope>>, pub expires_in: Duration, }
Token validation returned from https://id.twitch.tv/oauth2/validate
See https://dev.twitch.tv/docs/authentication#validating-requests
Fields
client_id: ClientId
Client ID associated with the token. Twitch requires this in all helix API calls
login: Option<String>
Username associated with the token
user_id: Option<String>
User ID associated with the token
scopes: Option<Vec<Scope>>
Scopes attached to the token.
expires_in: Duration
Lifetime of the token
Trait Implementations
impl Clone for ValidatedToken
[src]
impl Clone for ValidatedToken
[src]fn clone(&self) -> ValidatedToken
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for ValidatedToken
[src]
impl<'de> Deserialize<'de> for ValidatedToken
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl RefUnwindSafe for ValidatedToken
impl RefUnwindSafe for ValidatedToken
impl Send for ValidatedToken
impl Send for ValidatedToken
impl Sync for ValidatedToken
impl Sync for ValidatedToken
impl Unpin for ValidatedToken
impl Unpin for ValidatedToken
impl UnwindSafe for ValidatedToken
impl UnwindSafe for ValidatedToken
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument 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]
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> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,