#[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 ==.