Struct actix_web_security::authentication::scheme::bearer::jwt::default_jwt::DefaultJwt [−][src]
pub struct DefaultJwt { pub iss: Option<String>, pub sub: Option<String>, pub aud: Option<String>, pub exp: Option<usize>, pub nbf: Option<usize>, pub iat: Option<usize>, pub jti: Option<String>, }
A default implementation that can be used for JWT based authentication with commonly used claims.
Fields
iss: Option<String>
The URL of the identity provider
sub: Option<String>
The principal identifier
aud: Option<String>
The recipients the claim is for
exp: Option<usize>
The expiration date of the token
nbf: Option<usize>
The time the token must not be used before
iat: Option<usize>
The time the token was issues
jti: Option<String>
Unique identifier of the token
Trait Implementations
impl Claims for DefaultJwt
[src]
impl Claims for DefaultJwt
[src]impl Clone for DefaultJwt
[src]
impl Clone for DefaultJwt
[src]fn clone(&self) -> DefaultJwt
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for DefaultJwt
[src]
impl<'de> Deserialize<'de> for DefaultJwt
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for DefaultJwt
[src]
impl Serialize for DefaultJwt
[src]Auto Trait Implementations
impl RefUnwindSafe for DefaultJwt
impl RefUnwindSafe for DefaultJwt
impl Send for DefaultJwt
impl Send for DefaultJwt
impl Sync for DefaultJwt
impl Sync for DefaultJwt
impl Unpin for DefaultJwt
impl Unpin for DefaultJwt
impl UnwindSafe for DefaultJwt
impl UnwindSafe for DefaultJwt
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> Instrument 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]
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> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,