pub struct IntrospectionResponse {Show 13 fields
pub active: bool,
pub scope: Option<String>,
pub client_id: Option<String>,
pub username: Option<String>,
pub token_type: Option<String>,
pub exp: Option<u64>,
pub iat: Option<u64>,
pub nbf: Option<u64>,
pub sub: Option<String>,
pub aud: Option<Value>,
pub iss: Option<String>,
pub jti: Option<String>,
pub additional: HashMap<String, Value>,
}Expand description
Token introspection response per RFC 7662 Section 2.2
Fields§
§active: boolWhether the token is currently active (REQUIRED)
scope: Option<String>Scope(s) associated with the token
client_id: Option<String>Client identifier
username: Option<String>Username (if applicable)
token_type: Option<String>Token type (Bearer, etc.)
exp: Option<u64>Expiration timestamp (seconds since epoch)
iat: Option<u64>Issued at timestamp (seconds since epoch)
nbf: Option<u64>Not before timestamp (seconds since epoch)
sub: Option<String>Subject
aud: Option<Value>Audience
iss: Option<String>Issuer
jti: Option<String>JWT ID
additional: HashMap<String, Value>Additional fields
Trait Implementations§
Source§impl Clone for IntrospectionResponse
impl Clone for IntrospectionResponse
Source§fn clone(&self) -> IntrospectionResponse
fn clone(&self) -> IntrospectionResponse
Returns a duplicate 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 IntrospectionResponse
impl Debug for IntrospectionResponse
Source§impl<'de> Deserialize<'de> for IntrospectionResponse
impl<'de> Deserialize<'de> for IntrospectionResponse
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
Auto Trait Implementations§
impl Freeze for IntrospectionResponse
impl RefUnwindSafe for IntrospectionResponse
impl Send for IntrospectionResponse
impl Sync for IntrospectionResponse
impl Unpin for IntrospectionResponse
impl UnwindSafe for IntrospectionResponse
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