pub struct FuncaptchaRequest {
pub website_url: String,
pub website_public_key: String,
pub proxy: ProxyInfo,
pub funcaptcha_api_js_subdomain: Option<String>,
pub data: Option<String>,
pub cookies: Option<String>,
pub user_agent: Option<String>,
}Expand description
FunCaptcha / Arkose Labs (FunCaptchaTask).
The docs require your own proxy for this task (use the same proxy to obtain the captcha
parameters and to create the task), so proxy is mandatory.
Fields§
§website_url: StringURL of the page where the captcha is located.
website_public_key: StringFunCaptcha public key (pk), e.g. EX72CCFB-26EX-40E5-91E6-85EX70BE98ED.
proxy: ProxyInfoMandatory proxy used by the worker.
funcaptcha_api_js_subdomain: Option<String>Arkose Labs subdomain (surl) without https://, only if it differs from
client-api.arkoselabs.com.
data: Option<String>Additional parameter, required if the site uses data[blob], e.g. {"blob":"..."}.
Cookies as "name1=value1; name2=value2".
user_agent: Option<String>Browser User-Agent (use the value supported by CapMonster Cloud).
Implementations§
Source§impl FuncaptchaRequest
impl FuncaptchaRequest
pub fn new( website_url: impl Into<String>, website_public_key: impl Into<String>, proxy: ProxyInfo, ) -> Self
pub fn with_funcaptcha_api_js_subdomain(self, value: impl Into<String>) -> Self
pub fn with_data(self, value: impl Into<String>) -> Self
pub fn with_user_agent(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl CaptchaRequest for FuncaptchaRequest
impl CaptchaRequest for FuncaptchaRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for FuncaptchaRequest
impl Clone for FuncaptchaRequest
Source§impl Debug for FuncaptchaRequest
impl Debug for FuncaptchaRequest
Auto Trait Implementations§
impl Freeze for FuncaptchaRequest
impl RefUnwindSafe for FuncaptchaRequest
impl Send for FuncaptchaRequest
impl Sync for FuncaptchaRequest
impl Unpin for FuncaptchaRequest
impl UnsafeUnpin for FuncaptchaRequest
impl UnwindSafe for FuncaptchaRequest
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