Struct aws_sdk_macie2::types::SessionContext
source · #[non_exhaustive]pub struct SessionContext {
pub attributes: Option<SessionContextAttributes>,
pub session_issuer: Option<SessionIssuer>,
}
Expand description
Provides information about a session that was created for an entity that performed an action by using temporary security credentials.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attributes: Option<SessionContextAttributes>
The date and time when the credentials were issued, and whether the credentials were authenticated with a multi-factor authentication (MFA) device.
session_issuer: Option<SessionIssuer>
The source and type of credentials that were issued to the entity.
Implementations§
source§impl SessionContext
impl SessionContext
sourcepub fn attributes(&self) -> Option<&SessionContextAttributes>
pub fn attributes(&self) -> Option<&SessionContextAttributes>
The date and time when the credentials were issued, and whether the credentials were authenticated with a multi-factor authentication (MFA) device.
sourcepub fn session_issuer(&self) -> Option<&SessionIssuer>
pub fn session_issuer(&self) -> Option<&SessionIssuer>
The source and type of credentials that were issued to the entity.
source§impl SessionContext
impl SessionContext
sourcepub fn builder() -> SessionContextBuilder
pub fn builder() -> SessionContextBuilder
Creates a new builder-style object to manufacture SessionContext
.
Trait Implementations§
source§impl Clone for SessionContext
impl Clone for SessionContext
source§fn clone(&self) -> SessionContext
fn clone(&self) -> SessionContext
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 Debug for SessionContext
impl Debug for SessionContext
source§impl PartialEq for SessionContext
impl PartialEq for SessionContext
source§fn eq(&self, other: &SessionContext) -> bool
fn eq(&self, other: &SessionContext) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionContext
Auto Trait Implementations§
impl Freeze for SessionContext
impl RefUnwindSafe for SessionContext
impl Send for SessionContext
impl Sync for SessionContext
impl Unpin for SessionContext
impl UnwindSafe for SessionContext
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.