pub struct RecaptchaV2Request {
pub website_url: String,
pub website_key: String,
pub proxy: Option<ProxyInfo>,
pub data_s_value: Option<String>,
pub user_agent: Option<String>,
pub cookies: Option<String>,
pub is_invisible: Option<bool>,
}Expand description
reCAPTCHA v2 (RecaptchaV2Task). Without proxy the task is solved from CapMonster’s own IPs.
Fields§
§website_url: StringURL of the page with the captcha.
website_key: StringreCAPTCHA site key.
proxy: Option<ProxyInfo>§data_s_value: Option<String>One-time data-s token of some custom reCAPTCHA v2 implementations.
user_agent: Option<String>Current browser User-Agent (Windows).
Cookies as "name1=value1; name2=value2".
is_invisible: Option<bool>Implementations§
Source§impl RecaptchaV2Request
impl RecaptchaV2Request
pub fn new( website_url: impl Into<String>, website_key: impl Into<String>, ) -> Self
pub fn with_proxy(self, proxy: ProxyInfo) -> Self
pub fn with_data_s_value(self, value: impl Into<String>) -> Self
pub fn with_user_agent(self, value: impl Into<String>) -> Self
pub fn with_is_invisible(self, value: bool) -> Self
Trait Implementations§
Source§impl CaptchaRequest for RecaptchaV2Request
impl CaptchaRequest for RecaptchaV2Request
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for RecaptchaV2Request
impl Clone for RecaptchaV2Request
Source§impl Debug for RecaptchaV2Request
impl Debug for RecaptchaV2Request
Auto Trait Implementations§
impl Freeze for RecaptchaV2Request
impl RefUnwindSafe for RecaptchaV2Request
impl Send for RecaptchaV2Request
impl Sync for RecaptchaV2Request
impl Unpin for RecaptchaV2Request
impl UnsafeUnpin for RecaptchaV2Request
impl UnwindSafe for RecaptchaV2Request
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