pub struct MtCaptchaRequest {
pub website_url: String,
pub website_key: String,
pub proxy: Option<ProxyInfo>,
pub page_action: Option<String>,
pub is_invisible: Option<bool>,
pub user_agent: Option<String>,
}Expand description
MTCaptcha (MTCaptchaTask).
Fields§
§website_url: StringURL of the page where the captcha is solved.
website_key: StringMTCaptcha key, passed on the page as sk; typically MTPublic-abCDEFJAB.
proxy: Option<ProxyInfo>§page_action: Option<String>The act parameter. Send it only if it differs from the default %24.
is_invisible: Option<bool>true if the captcha is invisible (has a hidden confirmation field).
user_agent: Option<String>Browser User-Agent (use a current Windows one).
Implementations§
Source§impl MtCaptchaRequest
impl MtCaptchaRequest
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_page_action(self, value: impl Into<String>) -> Self
pub fn with_is_invisible(self, value: bool) -> Self
pub fn with_user_agent(self, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl CaptchaRequest for MtCaptchaRequest
impl CaptchaRequest for MtCaptchaRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for MtCaptchaRequest
impl Clone for MtCaptchaRequest
Source§impl Debug for MtCaptchaRequest
impl Debug for MtCaptchaRequest
Auto Trait Implementations§
impl Freeze for MtCaptchaRequest
impl RefUnwindSafe for MtCaptchaRequest
impl Send for MtCaptchaRequest
impl Sync for MtCaptchaRequest
impl Unpin for MtCaptchaRequest
impl UnsafeUnpin for MtCaptchaRequest
impl UnwindSafe for MtCaptchaRequest
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