#[non_exhaustive]pub struct AuthEventType {
pub event_id: Option<String>,
pub event_type: Option<EventType>,
pub creation_date: Option<DateTime>,
pub event_response: Option<EventResponseType>,
pub event_risk: Option<EventRiskType>,
pub challenge_responses: Option<Vec<ChallengeResponseType>>,
pub event_context_data: Option<EventContextDataType>,
pub event_feedback: Option<EventFeedbackType>,
}
Expand description
The authentication event type.
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.event_id: Option<String>
The event ID.
event_type: Option<EventType>
The event type.
creation_date: Option<DateTime>
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
event_response: Option<EventResponseType>
The event response.
event_risk: Option<EventRiskType>
The event risk.
challenge_responses: Option<Vec<ChallengeResponseType>>
The challenge responses.
event_context_data: Option<EventContextDataType>
The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.
event_feedback: Option<EventFeedbackType>
A flag specifying the user feedback captured at the time of an event request is good or bad.
Implementations§
source§impl AuthEventType
impl AuthEventType
sourcepub fn event_type(&self) -> Option<&EventType>
pub fn event_type(&self) -> Option<&EventType>
The event type.
sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date and time when the item was created. Amazon Cognito returns this timestamp in UNIX epoch time format. Your SDK might render the output in a human-readable format like ISO 8601 or a Java Date
object.
sourcepub fn event_response(&self) -> Option<&EventResponseType>
pub fn event_response(&self) -> Option<&EventResponseType>
The event response.
sourcepub fn event_risk(&self) -> Option<&EventRiskType>
pub fn event_risk(&self) -> Option<&EventRiskType>
The event risk.
sourcepub fn challenge_responses(&self) -> &[ChallengeResponseType]
pub fn challenge_responses(&self) -> &[ChallengeResponseType]
The challenge responses.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .challenge_responses.is_none()
.
sourcepub fn event_context_data(&self) -> Option<&EventContextDataType>
pub fn event_context_data(&self) -> Option<&EventContextDataType>
The user context data captured at the time of an event request. This value provides additional information about the client from which event the request is received.
sourcepub fn event_feedback(&self) -> Option<&EventFeedbackType>
pub fn event_feedback(&self) -> Option<&EventFeedbackType>
A flag specifying the user feedback captured at the time of an event request is good or bad.
source§impl AuthEventType
impl AuthEventType
sourcepub fn builder() -> AuthEventTypeBuilder
pub fn builder() -> AuthEventTypeBuilder
Creates a new builder-style object to manufacture AuthEventType
.
Trait Implementations§
source§impl Clone for AuthEventType
impl Clone for AuthEventType
source§fn clone(&self) -> AuthEventType
fn clone(&self) -> AuthEventType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AuthEventType
impl Debug for AuthEventType
source§impl PartialEq for AuthEventType
impl PartialEq for AuthEventType
source§fn eq(&self, other: &AuthEventType) -> bool
fn eq(&self, other: &AuthEventType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AuthEventType
Auto Trait Implementations§
impl Freeze for AuthEventType
impl RefUnwindSafe for AuthEventType
impl Send for AuthEventType
impl Sync for AuthEventType
impl Unpin for AuthEventType
impl UnwindSafe for AuthEventType
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