pub struct AmazonWafRequest {
pub website_url: String,
pub variant: AmazonWafVariant,
pub proxy: Option<ProxyInfo>,
pub cookie_solution: Option<bool>,
}Expand description
Amazon AWS WAF captcha and challenge (AmazonTask).
Build it with AmazonWafRequest::new and one of AmazonVisibleCaptcha,
AmazonChallengeAndCaptcha, AmazonChallengeOnly; the type system makes it impossible
to mix parameters of different options.
Fields§
§website_url: StringAddress of the main page where the captcha is solved.
variant: AmazonWafVariantWhich of the three parameter sets is used.
proxy: Option<ProxyInfo>false (default): the response has captcha_voucher and existing_token.
true: the response has the aws-waf-token cookie.
Implementations§
Source§impl AmazonWafRequest
impl AmazonWafRequest
pub fn new( website_url: impl Into<String>, variant: impl Into<AmazonWafVariant>, ) -> Self
pub fn with_proxy(self, proxy: ProxyInfo) -> Self
Trait Implementations§
Source§impl CaptchaRequest for AmazonWafRequest
impl CaptchaRequest for AmazonWafRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for AmazonWafRequest
impl Clone for AmazonWafRequest
Source§impl Debug for AmazonWafRequest
impl Debug for AmazonWafRequest
Auto Trait Implementations§
impl Freeze for AmazonWafRequest
impl RefUnwindSafe for AmazonWafRequest
impl Send for AmazonWafRequest
impl Sync for AmazonWafRequest
impl Unpin for AmazonWafRequest
impl UnsafeUnpin for AmazonWafRequest
impl UnwindSafe for AmazonWafRequest
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
Mutably borrows from an owned value. Read more