pub struct DshJwtPayload {Show 22 fields
pub issuer: Option<String>,
pub subject: Option<String>,
pub audience: Option<String>,
pub expiration_time: Option<i64>,
pub not_before: Option<i64>,
pub issued_at: Option<i64>,
pub jwt_id: Option<String>,
pub authentication_time: Option<i64>,
pub authorized_party: Option<String>,
pub client_address: Option<String>,
pub client_host: Option<String>,
pub client_id: Option<String>,
pub dsh_permission_representations: Option<Vec<String>>,
pub email: Option<String>,
pub email_verified: Option<bool>,
pub family_name: Option<String>,
pub given_name: Option<String>,
pub name: Option<String>,
pub preferred_username: Option<String>,
pub scope: Option<String>,
pub session_id: Option<String>,
pub token_type: Option<String>,
}Fields§
§issuer: Option<String>Issuer claim (rfc7519 “iss”)
subject: Option<String>Subject claim (rfc7519 “sub”)
audience: Option<String>Audience claim (rfc7519 “aud”)
expiration_time: Option<i64>Expiration time claim (rfc7519 “exp”)
not_before: Option<i64>Not before claim (rfc7519 “nbf”)
issued_at: Option<i64>Issued at claim (rfc7519 “iat”)
jwt_id: Option<String>Jwt id claim (rfc7519 “jti”)
authentication_time: Option<i64>§client_address: Option<String>§client_host: Option<String>§client_id: Option<String>§dsh_permission_representations: Option<Vec<String>>Permission representations claim (dsh specific “dsh_perms”)
email: Option<String>§email_verified: Option<bool>§family_name: Option<String>§given_name: Option<String>§name: Option<String>§preferred_username: Option<String>§scope: Option<String>§session_id: Option<String>§token_type: Option<String>Implementations§
Source§impl DshJwtPayload
impl DshJwtPayload
Sourcepub fn rfc7519_claims(&self) -> Vec<(&str, String)>
pub fn rfc7519_claims(&self) -> Vec<(&str, String)>
Returns a list of the available rfc7519 claims with their values
§Returns
- List of tuples consisting of the claim name and value.
Sourcepub fn expires_in(&self) -> Option<i64>
pub fn expires_in(&self) -> Option<i64>
Returns expected time before token expires
Sourcepub fn permissions(&self) -> DshApiResult<Vec<DshPermission>>
pub fn permissions(&self) -> DshApiResult<Vec<DshPermission>>
Returns a list of permissions
Sourcepub fn authenticated_tenants(&self) -> DshApiResult<Vec<String>>
pub fn authenticated_tenants(&self) -> DshApiResult<Vec<String>>
Returns a list with the names of authenticated tenants
Trait Implementations§
Source§impl Clone for DshJwtPayload
impl Clone for DshJwtPayload
Source§fn clone(&self) -> DshJwtPayload
fn clone(&self) -> DshJwtPayload
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 DshJwtPayload
impl Debug for DshJwtPayload
Source§impl<'de> Deserialize<'de> for DshJwtPayload
impl<'de> Deserialize<'de> for DshJwtPayload
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 Display for DshJwtPayload
impl Display for DshJwtPayload
Source§impl PartialEq for DshJwtPayload
impl PartialEq for DshJwtPayload
Source§impl Serialize for DshJwtPayload
impl Serialize for DshJwtPayload
impl StructuralPartialEq for DshJwtPayload
Auto Trait Implementations§
impl Freeze for DshJwtPayload
impl RefUnwindSafe for DshJwtPayload
impl Send for DshJwtPayload
impl Sync for DshJwtPayload
impl Unpin for DshJwtPayload
impl UnsafeUnpin for DshJwtPayload
impl UnwindSafe for DshJwtPayload
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<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 moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.