pub struct IntrospectResponse {
pub active: bool,
pub scope: Option<String>,
pub client_id: Option<String>,
pub username: Option<String>,
pub exp: Option<i64>,
pub iat: Option<i64>,
pub sub: Option<String>,
pub aud: Option<Vec<String>>,
pub iss: Option<String>,
pub jti: Option<String>,
pub token_type: Option<String>,
}Expand description
Response from the OAuth 2.0 token introspection endpoint (RFC 7662).
This response indicates whether a token is active and includes metadata about the token if it is active.
Fields§
§active: boolWhether the token is active (required).
scope: Option<String>Space-separated list of scopes (optional, only if active).
client_id: Option<String>Client identifier (optional, only if active).
username: Option<String>Username/subject (optional, only if active and token has user).
exp: Option<i64>Expiration timestamp as Unix time (optional, only if active).
iat: Option<i64>Issued at timestamp as Unix time (optional, only if active).
sub: Option<String>Subject identifier (optional, only if active and token has user).
aud: Option<Vec<String>>Audience (optional, only if active).
iss: Option<String>Issuer (optional, only if active).
jti: Option<String>JWT ID (optional, only if active).
token_type: Option<String>Token type: “Bearer” or “DPoP” (optional, only if active).
Trait Implementations§
Source§impl Clone for IntrospectResponse
impl Clone for IntrospectResponse
Source§fn clone(&self) -> IntrospectResponse
fn clone(&self) -> IntrospectResponse
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntrospectResponse
impl Debug for IntrospectResponse
Source§impl<'de> Deserialize<'de> for IntrospectResponse
impl<'de> Deserialize<'de> for IntrospectResponse
Source§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
Source§impl PartialEq for IntrospectResponse
impl PartialEq for IntrospectResponse
Source§impl Serialize for IntrospectResponse
impl Serialize for IntrospectResponse
impl Eq for IntrospectResponse
impl StructuralPartialEq for IntrospectResponse
Auto Trait Implementations§
impl Freeze for IntrospectResponse
impl RefUnwindSafe for IntrospectResponse
impl Send for IntrospectResponse
impl Sync for IntrospectResponse
impl Unpin for IntrospectResponse
impl UnwindSafe for IntrospectResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more