pub struct RecaptchaV2EnterpriseRequest {
pub website_url: String,
pub website_key: String,
pub proxy: Option<ProxyInfo>,
pub enterprise_payload: Option<EnterprisePayload>,
pub api_domain: Option<String>,
pub page_action: Option<String>,
pub user_agent: Option<String>,
pub cookies: Option<String>,
}Expand description
reCAPTCHA v2 Enterprise (RecaptchaV2EnterpriseTask).
Without proxy the task is solved from CapMonster’s own IPs; a proxy is only needed when the
website does not accept the token.
Fields§
§website_url: StringAddress of a webpage with Google reCAPTCHA Enterprise.
website_key: StringThe reCAPTCHA site key on the target page.
proxy: Option<ProxyInfo>Proxy used by the worker (optional).
enterprise_payload: Option<EnterprisePayload>Additional reCAPTCHA Enterprise parameters.
api_domain: Option<String>Domain to load reCAPTCHA Enterprise from, e.g. www.google.com or www.recaptcha.net.
page_action: Option<String>Value of the action parameter, if it differs from the default verify.
user_agent: Option<String>Browser User-Agent (use the value supported by CapMonster Cloud).
Cookies as "name1=value1; name2=value2".
Implementations§
Source§impl RecaptchaV2EnterpriseRequest
impl RecaptchaV2EnterpriseRequest
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_enterprise_payload(self, value: EnterprisePayload) -> Self
Sourcepub fn with_enterprise_s(self, s: impl Into<String>) -> Self
pub fn with_enterprise_s(self, s: impl Into<String>) -> Self
Shortcut for with_enterprise_payload(EnterprisePayload::new(s)).
pub fn with_api_domain(self, value: impl Into<String>) -> Self
pub fn with_page_action(self, value: impl Into<String>) -> Self
pub fn with_user_agent(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl CaptchaRequest for RecaptchaV2EnterpriseRequest
impl CaptchaRequest for RecaptchaV2EnterpriseRequest
Source§impl Clone for RecaptchaV2EnterpriseRequest
impl Clone for RecaptchaV2EnterpriseRequest
Source§impl Debug for RecaptchaV2EnterpriseRequest
impl Debug for RecaptchaV2EnterpriseRequest
Auto Trait Implementations§
impl Freeze for RecaptchaV2EnterpriseRequest
impl RefUnwindSafe for RecaptchaV2EnterpriseRequest
impl Send for RecaptchaV2EnterpriseRequest
impl Sync for RecaptchaV2EnterpriseRequest
impl Unpin for RecaptchaV2EnterpriseRequest
impl UnsafeUnpin for RecaptchaV2EnterpriseRequest
impl UnwindSafe for RecaptchaV2EnterpriseRequest
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