pub trait CaptchaRequest: Serialize {
const TASK_TYPE: &'static str;
const CLASS: Option<&'static str> = None;
// Required method
fn timeouts(&self) -> GetResultTimeouts;
// Provided methods
fn validate(&self) -> Result<()> { ... }
fn to_task(&self) -> Result<Value> { ... }
}Expand description
A task that can be sent to CapMonster Cloud.
Required Associated Constants§
Provided Associated Constants§
Required Methods§
Sourcefn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".