Struct aws_sdk_wafv2::model::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 puzzle was solved for the supplied token.
failure_reason: Option<FailureReason>The reason for failure, populated when the evaluation of the token fails.
Implementations
sourceimpl 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 puzzle was 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.
sourceimpl CaptchaResponse
impl CaptchaResponse
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CaptchaResponse
Trait Implementations
sourceimpl Clone for CaptchaResponse
impl Clone for CaptchaResponse
sourcefn clone(&self) -> CaptchaResponse
fn clone(&self) -> CaptchaResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CaptchaResponse
impl Debug for CaptchaResponse
sourceimpl PartialEq<CaptchaResponse> for CaptchaResponse
impl PartialEq<CaptchaResponse> for CaptchaResponse
sourcefn eq(&self, other: &CaptchaResponse) -> bool
fn eq(&self, other: &CaptchaResponse) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CaptchaResponse) -> bool
fn ne(&self, other: &CaptchaResponse) -> bool
This method tests for !=.
impl StructuralPartialEq for CaptchaResponse
Auto Trait Implementations
impl RefUnwindSafe for CaptchaResponse
impl Send for CaptchaResponse
impl Sync for CaptchaResponse
impl Unpin for CaptchaResponse
impl UnwindSafe for CaptchaResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more