#[non_exhaustive]pub struct TokenValidityUnitsType {
pub access_token: Option<TimeUnitsType>,
pub id_token: Option<TimeUnitsType>,
pub refresh_token: Option<TimeUnitsType>,
}
Expand description
The data type TokenValidityUnits specifies the time units you use when you set the duration of ID, access, and refresh tokens.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.access_token: Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter. The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
id_token: Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter. The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
refresh_token: Option<TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter. The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.
Implementations§
source§impl TokenValidityUnitsType
impl TokenValidityUnitsType
sourcepub fn access_token(&self) -> Option<&TimeUnitsType>
pub fn access_token(&self) -> Option<&TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the AccessTokenValidity
parameter. The default AccessTokenValidity
time unit is hours. AccessTokenValidity
duration can range from five minutes to one day.
sourcepub fn id_token(&self) -> Option<&TimeUnitsType>
pub fn id_token(&self) -> Option<&TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the IdTokenValidity
parameter. The default IdTokenValidity
time unit is hours. IdTokenValidity
duration can range from five minutes to one day.
sourcepub fn refresh_token(&self) -> Option<&TimeUnitsType>
pub fn refresh_token(&self) -> Option<&TimeUnitsType>
A time unit of seconds
, minutes
, hours
, or days
for the value that you set in the RefreshTokenValidity
parameter. The default RefreshTokenValidity
time unit is days. RefreshTokenValidity
duration can range from 60 minutes to 10 years.
source§impl TokenValidityUnitsType
impl TokenValidityUnitsType
sourcepub fn builder() -> TokenValidityUnitsTypeBuilder
pub fn builder() -> TokenValidityUnitsTypeBuilder
Creates a new builder-style object to manufacture TokenValidityUnitsType
.
Trait Implementations§
source§impl Clone for TokenValidityUnitsType
impl Clone for TokenValidityUnitsType
source§fn clone(&self) -> TokenValidityUnitsType
fn clone(&self) -> TokenValidityUnitsType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TokenValidityUnitsType
impl Debug for TokenValidityUnitsType
source§impl PartialEq for TokenValidityUnitsType
impl PartialEq for TokenValidityUnitsType
source§fn eq(&self, other: &TokenValidityUnitsType) -> bool
fn eq(&self, other: &TokenValidityUnitsType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenValidityUnitsType
Auto Trait Implementations§
impl Freeze for TokenValidityUnitsType
impl RefUnwindSafe for TokenValidityUnitsType
impl Send for TokenValidityUnitsType
impl Sync for TokenValidityUnitsType
impl Unpin for TokenValidityUnitsType
impl UnwindSafe for TokenValidityUnitsType
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
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>
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>
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 more