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, }
Expand description
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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ValidatedToken
impl Send for ValidatedToken
impl Sync for ValidatedToken
impl Unpin for ValidatedToken
impl UnwindSafe for ValidatedToken
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more