Struct oauth2::StandardTokenIntrospectionResponse [−][src]
pub struct StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static, { /* fields omitted */ }
Expand description
Standard OAuth2 token introspection response.
This struct includes the fields defined in
Section 2.2 of RFC 7662, as well as
extensions defined by the EF
type parameter.
Implementations
impl<EF, TT> StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType,
impl<EF, TT> StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType,
Instantiate a new OAuth2 token introspection response.
Sets the set_active
field.
Sets the set_scopes
field.
Sets the set_client_id
field.
Sets the set_username
field.
Sets the set_token_type
field.
Extra fields defined by the client application.
Sets the set_extra_fields
field.
Trait Implementations
impl<EF: Clone, TT: Clone> Clone for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
impl<EF: Clone, TT: Clone> Clone for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
impl<EF: Debug, TT: Debug> Debug for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
impl<EF: Debug, TT: Debug> Debug for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
impl<'de, EF, TT> Deserialize<'de> for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
impl<'de, EF, TT> Deserialize<'de> for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
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
impl<EF, TT> Serialize for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
impl<EF, TT> Serialize for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
impl<EF, TT> TokenIntrospectionResponse<TT> for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType,
impl<EF, TT> TokenIntrospectionResponse<TT> for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType,
REQUIRED. Boolean indicator of whether or not the presented token is currently active. The specifics of a token’s “active” state will vary depending on the implementation of the authorization server and the information it keeps about its tokens, but a “true” value return for the “active” property will generally indicate that a given token has been issued by this authorization server, has not been revoked by the resource owner, and is within its given time window of validity (e.g., after its issuance time and before its expiration time). Read more
OPTIONAL. A JSON string containing a space-separated list of
scopes associated with this token, in the format described in
Section 3.3 of OAuth 2.0.
If included in the response,
this space-delimited field is parsed into a Vec
of individual scopes. If omitted from
the response, this field is None
. Read more
OPTIONAL. Client identifier for the OAuth 2.0 client that requested this token. Read more
OPTIONAL. Human-readable identifier for the resource owner who authorized this token. Read more
OPTIONAL. Type of the token as defined in Section 5.1 of OAuth
2.0 [RFC6749].
Value is case insensitive and deserialized to the generic TokenType
parameter. Read more
Auto Trait Implementations
impl<EF, TT> RefUnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
EF: RefUnwindSafe,
TT: RefUnwindSafe,
impl<EF, TT> Send for StandardTokenIntrospectionResponse<EF, TT> where
EF: Send,
TT: Send,
impl<EF, TT> Sync for StandardTokenIntrospectionResponse<EF, TT> where
EF: Sync,
TT: Sync,
impl<EF, TT> Unpin for StandardTokenIntrospectionResponse<EF, TT> where
EF: Unpin,
TT: Unpin,
impl<EF, TT> UnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
EF: UnwindSafe,
TT: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. 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