#[non_exhaustive]pub struct SessionContextAttributesBuilder { /* private fields */ }
Expand description
A builder for SessionContextAttributes
.
Implementations§
source§impl SessionContextAttributesBuilder
impl SessionContextAttributesBuilder
sourcepub fn creation_date(self, input: DateTime) -> Self
pub fn creation_date(self, input: DateTime) -> Self
The date and time, in UTC and ISO 8601 format, when the credentials were issued.
sourcepub fn set_creation_date(self, input: Option<DateTime>) -> Self
pub fn set_creation_date(self, input: Option<DateTime>) -> Self
The date and time, in UTC and ISO 8601 format, when the credentials were issued.
sourcepub fn get_creation_date(&self) -> &Option<DateTime>
pub fn get_creation_date(&self) -> &Option<DateTime>
The date and time, in UTC and ISO 8601 format, when the credentials were issued.
sourcepub fn mfa_authenticated(self, input: bool) -> Self
pub fn mfa_authenticated(self, input: bool) -> Self
Specifies whether the credentials were authenticated with a multi-factor authentication (MFA) device.
sourcepub fn set_mfa_authenticated(self, input: Option<bool>) -> Self
pub fn set_mfa_authenticated(self, input: Option<bool>) -> Self
Specifies whether the credentials were authenticated with a multi-factor authentication (MFA) device.
sourcepub fn get_mfa_authenticated(&self) -> &Option<bool>
pub fn get_mfa_authenticated(&self) -> &Option<bool>
Specifies whether the credentials were authenticated with a multi-factor authentication (MFA) device.
sourcepub fn build(self) -> SessionContextAttributes
pub fn build(self) -> SessionContextAttributes
Consumes the builder and constructs a SessionContextAttributes
.
Trait Implementations§
source§impl Clone for SessionContextAttributesBuilder
impl Clone for SessionContextAttributesBuilder
source§fn clone(&self) -> SessionContextAttributesBuilder
fn clone(&self) -> SessionContextAttributesBuilder
Returns a copy 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 Default for SessionContextAttributesBuilder
impl Default for SessionContextAttributesBuilder
source§fn default() -> SessionContextAttributesBuilder
fn default() -> SessionContextAttributesBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for SessionContextAttributesBuilder
impl PartialEq for SessionContextAttributesBuilder
source§fn eq(&self, other: &SessionContextAttributesBuilder) -> bool
fn eq(&self, other: &SessionContextAttributesBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionContextAttributesBuilder
Auto Trait Implementations§
impl Freeze for SessionContextAttributesBuilder
impl RefUnwindSafe for SessionContextAttributesBuilder
impl Send for SessionContextAttributesBuilder
impl Sync for SessionContextAttributesBuilder
impl Unpin for SessionContextAttributesBuilder
impl UnwindSafe for SessionContextAttributesBuilder
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> 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 moreCreates a shared type from an unshared type.