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<ChallengeResponse> for ChallengeResponse
impl PartialEq<ChallengeResponse> 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 ==.