pub struct RecaptchaV2Task {
pub website_url: String,
pub website_key: String,
pub is_invisible: bool,
pub sa: Option<String>,
pub s: Option<String>,
pub website_title: Option<String>,
pub proxy: Option<String>,
pub extra: ExtraFields,
}Expand description
Request parameters shared by ReCaptcha V2 task variants.
Build with string literals or owned strings; optional setters wrap values
in Some, while maybe_* setters accept an Option directly.
use ezcapsolver::RecaptchaV2Task;
let task = RecaptchaV2Task::builder()
.website_url("https://example.com")
.website_key("site-key")
.s("challenge-data")
.build();
assert_eq!(task.s.as_deref(), Some("challenge-data"));
assert!(!task.is_invisible);Required fields must be set before calling build().
ⓘ
use ezcapsolver::RecaptchaV2Task;
let task = RecaptchaV2Task::builder()
.website_url("https://example.com")
.build();Fields§
§website_url: StringURL of the page containing the challenge.
website_key: StringReCaptcha site key.
is_invisible: boolWhether the challenge uses invisible mode.
sa: Option<String>Optional security anchor parameter.
s: Option<String>Optional challenge-bound s parameter.
website_title: Option<String>Optional page title.
proxy: Option<String>Optional proxy forwarded to the worker.
extra: ExtraFieldsAdditional worker parameters.
Implementations§
Source§impl RecaptchaV2Task
impl RecaptchaV2Task
pub fn serialize<__S>(
__self: &RecaptchaV2Task,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl RecaptchaV2Task
impl RecaptchaV2Task
Sourcepub fn builder() -> RecaptchaV2TaskBuilder
pub fn builder() -> RecaptchaV2TaskBuilder
Create an instance of RecaptchaV2Task using the builder syntax
Trait Implementations§
Source§impl Clone for RecaptchaV2Task
impl Clone for RecaptchaV2Task
Source§impl Debug for RecaptchaV2Task
impl Debug for RecaptchaV2Task
Source§impl Default for RecaptchaV2Task
impl Default for RecaptchaV2Task
Auto Trait Implementations§
impl Freeze for RecaptchaV2Task
impl RefUnwindSafe for RecaptchaV2Task
impl Send for RecaptchaV2Task
impl Sync for RecaptchaV2Task
impl Unpin for RecaptchaV2Task
impl UnsafeUnpin for RecaptchaV2Task
impl UnwindSafe for RecaptchaV2Task
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