pub struct IntrospectResponse {
pub active: bool,
pub scope: Option<String>,
pub client_id: Option<String>,
pub username: Option<String>,
pub token_type: Option<String>,
pub exp: Option<i64>,
pub iat: Option<i64>,
pub nbf: Option<i64>,
pub sub: Option<String>,
pub aud: Option<Vec<String>>,
pub iss: Option<String>,
pub jti: Option<String>,
}Expand description
Token introspection response (RFC 7662)
Fields§
§active: boolWhether the token is active
scope: Option<String>Space-separated list of scopes
client_id: Option<String>Client identifier
username: Option<String>Human-readable identifier for the resource owner
token_type: Option<String>Type of the token
exp: Option<i64>Expiration time (Unix timestamp)
iat: Option<i64>Issued at time (Unix timestamp)
nbf: Option<i64>Not before time (Unix timestamp)
sub: Option<String>Subject of the token
aud: Option<Vec<String>>Audience of the token
iss: Option<String>Issuer of the token
jti: Option<String>Unique identifier for the token
Trait Implementations§
Source§impl Clone for IntrospectResponse
impl Clone for IntrospectResponse
Source§fn clone(&self) -> IntrospectResponse
fn clone(&self) -> IntrospectResponse
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 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
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