pub struct TurnstileRequest {
pub website_url: String,
pub website_key: String,
pub mode: TurnstileMode,
}Expand description
Cloudflare Turnstile / Challenge / Waiting Room (TurnstileTask).
Pick the mode with TurnstileMode (or pass one of the parameter structs directly):
TurnstileStandard, TurnstileChallengeToken, TurnstileChallengeCookie,
TurnstileWaitRoom. Each one only has the fields the API accepts for that mode, and
the required ones are constructor arguments.
Fields§
§website_url: StringURL of the page where the captcha is solved.
website_key: StringTurnstile site key, e.g. 0x4AAAAAAABUYP0XeMJF0xoy. For cf_clearance / wait_room
any string may be passed (e.g. xxxxxx).
mode: TurnstileModeImplementations§
Trait Implementations§
Source§impl CaptchaRequest for TurnstileRequest
impl CaptchaRequest for TurnstileRequest
Source§fn timeouts(&self) -> GetResultTimeouts
fn timeouts(&self) -> GetResultTimeouts
Polling schedule recommended for this captcha type.
Source§impl Clone for TurnstileRequest
impl Clone for TurnstileRequest
Source§impl Debug for TurnstileRequest
impl Debug for TurnstileRequest
Auto Trait Implementations§
impl Freeze for TurnstileRequest
impl RefUnwindSafe for TurnstileRequest
impl Send for TurnstileRequest
impl Sync for TurnstileRequest
impl Unpin for TurnstileRequest
impl UnsafeUnpin for TurnstileRequest
impl UnwindSafe for TurnstileRequest
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