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 ==
.