pub struct RecaptchaComplexImageTaskRequest {
pub image_urls: Option<Vec<String>>,
pub images_base64: Option<Vec<String>>,
pub metadata: RecaptchaMetadata,
pub user_agent: Option<String>,
pub website_url: Option<String>,
}Expand description
reCAPTCHA v2 image click task (ComplexImageTask, class recaptcha). No proxy is needed.
Pass the full 4x4 / 3x3 image or a new 1x1 tile either by URL or as base64 (one entry max).
Fields§
§image_urls: Option<Vec<String>>Image links (array of one); required if images_base64 is not set.
images_base64: Option<Vec<String>>Base64 images without the data:image/jpeg;base64, prefix (array of one); required if
image_urls is not set.
metadata: RecaptchaMetadataGrid and task description.
user_agent: Option<String>User-Agent to use when loading images passed as URLs.
website_url: Option<String>URL of the page where the captcha is solved.
Implementations§
Source§impl RecaptchaComplexImageTaskRequest
impl RecaptchaComplexImageTaskRequest
Sourcepub fn from_url(
image_url: impl Into<String>,
metadata: RecaptchaMetadata,
) -> Self
pub fn from_url( image_url: impl Into<String>, metadata: RecaptchaMetadata, ) -> Self
Request with the image given by URL.
Sourcepub fn from_base64(
image_base64: impl Into<String>,
metadata: RecaptchaMetadata,
) -> Self
pub fn from_base64( image_base64: impl Into<String>, metadata: RecaptchaMetadata, ) -> Self
Request with the image given as base64.
pub fn with_image_urls(self, value: Vec<String>) -> Self
pub fn with_images_base64(self, value: Vec<String>) -> Self
pub fn with_user_agent(self, value: impl Into<String>) -> Self
pub fn with_website_url(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl CaptchaRequest for RecaptchaComplexImageTaskRequest
impl CaptchaRequest for RecaptchaComplexImageTaskRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Auto Trait Implementations§
impl Freeze for RecaptchaComplexImageTaskRequest
impl RefUnwindSafe for RecaptchaComplexImageTaskRequest
impl Send for RecaptchaComplexImageTaskRequest
impl Sync for RecaptchaComplexImageTaskRequest
impl Unpin for RecaptchaComplexImageTaskRequest
impl UnsafeUnpin for RecaptchaComplexImageTaskRequest
impl UnwindSafe for RecaptchaComplexImageTaskRequest
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