Struct aws_sdk_wafv2::types::ChallengeResponse
source · #[non_exhaustive]pub struct ChallengeResponse {
pub response_code: Option<i32>,
pub solve_timestamp: Option<i64>,
pub failure_reason: Option<FailureReason>,
}
Expand description
The result from the inspection of the web request for a valid challenge token.
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.response_code: Option<i32>
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted
.
solve_timestamp: Option<i64>
The time that the challenge was last solved for the supplied token.
failure_reason: Option<FailureReason>
The reason for failure, populated when the evaluation of the token fails.
Implementations§
source§impl ChallengeResponse
impl ChallengeResponse
sourcepub fn response_code(&self) -> Option<i32>
pub fn response_code(&self) -> Option<i32>
The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted
.
sourcepub fn solve_timestamp(&self) -> Option<i64>
pub fn solve_timestamp(&self) -> Option<i64>
The time that the challenge was last solved for the supplied token.
sourcepub fn failure_reason(&self) -> Option<&FailureReason>
pub fn failure_reason(&self) -> Option<&FailureReason>
The reason for failure, populated when the evaluation of the token fails.
source§impl ChallengeResponse
impl ChallengeResponse
sourcepub fn builder() -> ChallengeResponseBuilder
pub fn builder() -> ChallengeResponseBuilder
Creates a new builder-style object to manufacture ChallengeResponse
.
Trait Implementations§
source§impl Clone for ChallengeResponse
impl Clone for ChallengeResponse
source§fn clone(&self) -> ChallengeResponse
fn clone(&self) -> ChallengeResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChallengeResponse
impl Debug for ChallengeResponse
source§impl PartialEq for ChallengeResponse
impl PartialEq for ChallengeResponse
source§fn eq(&self, other: &ChallengeResponse) -> bool
fn eq(&self, other: &ChallengeResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ChallengeResponse
Auto Trait Implementations§
impl Freeze for ChallengeResponse
impl RefUnwindSafe for ChallengeResponse
impl Send for ChallengeResponse
impl Sync for ChallengeResponse
impl Unpin for ChallengeResponse
impl UnwindSafe for ChallengeResponse
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