Struct oauth2::StandardTokenIntrospectionResponse [−][src]
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,
[src]
EF: ExtraTokenFields,
TT: TokenType,
pub fn new(active: bool, extra_fields: EF) -> Self
[src]
Instantiate a new OAuth2 token introspection response.
pub fn set_active(&mut self, active: bool)
[src]
Sets the set_active
field.
pub fn set_scopes(&mut self, scopes: Option<Vec<Scope>>)
[src]
Sets the set_scopes
field.
pub fn set_client_id(&mut self, client_id: Option<ClientId>)
[src]
Sets the set_client_id
field.
pub fn set_username(&mut self, username: Option<String>)
[src]
Sets the set_username
field.
pub fn set_token_type(&mut self, token_type: Option<TT>)
[src]
Sets the set_token_type
field.
pub fn set_exp(&mut self, exp: Option<DateTime<Utc>>)
[src]
Sets the set_exp
field.
pub fn set_iat(&mut self, iat: Option<DateTime<Utc>>)
[src]
Sets the set_iat
field.
pub fn set_nbf(&mut self, nbf: Option<DateTime<Utc>>)
[src]
Sets the set_nbf
field.
pub fn set_sub(&mut self, sub: Option<String>)
[src]
Sets the set_sub
field.
pub fn set_aud(&mut self, aud: Option<Vec<String>>)
[src]
Sets the set_aud
field.
pub fn set_iss(&mut self, iss: Option<String>)
[src]
Sets the set_iss
field.
pub fn set_jti(&mut self, jti: Option<String>)
[src]
Sets the set_jti
field.
pub fn set_extra_fields(&mut self, extra_fields: EF)
[src]
Sets the set_extra_fields
field.
Trait Implementations
impl<EF: Clone, TT: Clone> Clone for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
[src]
EF: ExtraTokenFields,
TT: TokenType + 'static,
fn clone(&self) -> StandardTokenIntrospectionResponse<EF, TT>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<EF: Debug, TT: Debug> Debug for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
[src]
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,
[src]
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<EF, TT> Serialize for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
[src]
EF: ExtraTokenFields,
TT: TokenType + 'static,
TT: TokenType,
EF: ExtraTokenFields,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<EF, TT> TokenIntrospectionResponse<TT> for StandardTokenIntrospectionResponse<EF, TT> where
EF: ExtraTokenFields,
TT: TokenType,
[src]
EF: ExtraTokenFields,
TT: TokenType,
fn active(&self) -> bool
[src]
fn scopes(&self) -> Option<&Vec<Scope>>
[src]
fn client_id(&self) -> Option<&ClientId>
[src]
fn username(&self) -> Option<&str>
[src]
fn token_type(&self) -> Option<&TT>
[src]
fn exp(&self) -> Option<DateTime<Utc>>
[src]
fn iat(&self) -> Option<DateTime<Utc>>
[src]
fn nbf(&self) -> Option<DateTime<Utc>>
[src]
fn sub(&self) -> Option<&str>
[src]
fn aud(&self) -> Option<&Vec<String>>
[src]
fn iss(&self) -> Option<&str>
[src]
fn jti(&self) -> Option<&str>
[src]
Auto Trait Implementations
impl<EF, TT> RefUnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
EF: RefUnwindSafe,
TT: RefUnwindSafe,
[src]
EF: RefUnwindSafe,
TT: RefUnwindSafe,
impl<EF, TT> Send for StandardTokenIntrospectionResponse<EF, TT> where
EF: Send,
TT: Send,
[src]
EF: Send,
TT: Send,
impl<EF, TT> Sync for StandardTokenIntrospectionResponse<EF, TT> where
EF: Sync,
TT: Sync,
[src]
EF: Sync,
TT: Sync,
impl<EF, TT> Unpin for StandardTokenIntrospectionResponse<EF, TT> where
EF: Unpin,
TT: Unpin,
[src]
EF: Unpin,
TT: Unpin,
impl<EF, TT> UnwindSafe for StandardTokenIntrospectionResponse<EF, TT> where
EF: UnwindSafe,
TT: UnwindSafe,
[src]
EF: UnwindSafe,
TT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,