Struct aws_sdk_wafv2::types::CaptchaResponse
source · #[non_exhaustive]pub struct CaptchaResponse {
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 CAPTCHA
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 CAPTCHA
token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed
.
solve_timestamp: Option<i64>
The time that the CAPTCHA
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 CaptchaResponse
impl CaptchaResponse
sourcepub fn response_code(&self) -> Option<i32>
pub fn response_code(&self) -> Option<i32>
The HTTP response code indicating the status of the CAPTCHA
token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed
.
sourcepub fn solve_timestamp(&self) -> Option<i64>
pub fn solve_timestamp(&self) -> Option<i64>
The time that the CAPTCHA
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 CaptchaResponse
impl CaptchaResponse
sourcepub fn builder() -> CaptchaResponseBuilder
pub fn builder() -> CaptchaResponseBuilder
Creates a new builder-style object to manufacture CaptchaResponse
.
Trait Implementations§
source§impl Clone for CaptchaResponse
impl Clone for CaptchaResponse
source§fn clone(&self) -> CaptchaResponse
fn clone(&self) -> CaptchaResponse
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CaptchaResponse
impl Debug for CaptchaResponse
source§impl PartialEq for CaptchaResponse
impl PartialEq for CaptchaResponse
source§fn eq(&self, other: &CaptchaResponse) -> bool
fn eq(&self, other: &CaptchaResponse) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CaptchaResponse
Auto Trait Implementations§
impl Freeze for CaptchaResponse
impl RefUnwindSafe for CaptchaResponse
impl Send for CaptchaResponse
impl Sync for CaptchaResponse
impl Unpin for CaptchaResponse
impl UnwindSafe for CaptchaResponse
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