pub struct AntiCaptcha { /* private fields */ }Implementations§
Source§impl AntiCaptcha
impl AntiCaptcha
pub fn new(api_key: String) -> Self
Sourcepub async fn solve_hcaptcha(
&self,
website_url: &str,
website_key: &str,
) -> Result<String, Box<dyn Error>>
pub async fn solve_hcaptcha( &self, website_url: &str, website_key: &str, ) -> Result<String, Box<dyn Error>>
Solve hCaptcha
Sourcepub async fn solve_recaptcha_v2(
&self,
website_url: &str,
website_key: &str,
) -> Result<String, Box<dyn Error>>
pub async fn solve_recaptcha_v2( &self, website_url: &str, website_key: &str, ) -> Result<String, Box<dyn Error>>
Solve reCAPTCHA v2
Sourcepub async fn solve_recaptcha_v3(
&self,
website_url: &str,
website_key: &str,
page_action: &str,
min_score: f32,
) -> Result<String, Box<dyn Error>>
pub async fn solve_recaptcha_v3( &self, website_url: &str, website_key: &str, page_action: &str, min_score: f32, ) -> Result<String, Box<dyn Error>>
Solve reCAPTCHA v3
Sourcepub async fn detect_captcha_on_page(page: &Page) -> Option<CaptchaInfo>
pub async fn detect_captcha_on_page(page: &Page) -> Option<CaptchaInfo>
Detect captcha on page and return sitekey
Auto Trait Implementations§
impl Freeze for AntiCaptcha
impl !RefUnwindSafe for AntiCaptcha
impl Send for AntiCaptcha
impl Sync for AntiCaptcha
impl Unpin for AntiCaptcha
impl UnsafeUnpin for AntiCaptcha
impl !UnwindSafe for AntiCaptcha
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