pub struct HcaptchaTask {
pub website_url: String,
pub website_key: String,
pub lang: String,
pub proxy: Option<String>,
pub invisible: bool,
pub rq_data: Option<String>,
pub extra: ExtraFields,
}Expand description
HCaptcha token task.
Fields§
§website_url: StringURL of the page containing the challenge.
website_key: StringHCaptcha site key.
lang: StringBrowser language. Only en-US is supported at the moment.
proxy: Option<String>Optional proxy forwarded to the worker.
invisible: boolWhether the challenge runs without a visible checkbox.
True when the site shows no hCaptcha checkbox, false when it does.
rq_data: Option<String>Optional rqdata value, required by the sites that publish one.
The wire name is all lowercase here, unlike the Cloudflare types, whose
equivalent field is rqData. The two are not interchangeable.
extra: ExtraFieldsAdditional worker parameters.
Implementations§
Source§impl HcaptchaTask
impl HcaptchaTask
pub fn serialize<__S>(
__self: &HcaptchaTask,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl HcaptchaTask
impl HcaptchaTask
Sourcepub fn builder() -> HcaptchaTaskBuilder
pub fn builder() -> HcaptchaTaskBuilder
Create an instance of HcaptchaTask using the builder syntax
Trait Implementations§
Source§impl Clone for HcaptchaTask
impl Clone for HcaptchaTask
Source§impl Debug for HcaptchaTask
impl Debug for HcaptchaTask
Source§impl Default for HcaptchaTask
impl Default for HcaptchaTask
Auto Trait Implementations§
impl Freeze for HcaptchaTask
impl RefUnwindSafe for HcaptchaTask
impl Send for HcaptchaTask
impl Sync for HcaptchaTask
impl Unpin for HcaptchaTask
impl UnsafeUnpin for HcaptchaTask
impl UnwindSafe for HcaptchaTask
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