Skip to main content

CaptchaVerifier

Trait CaptchaVerifier 

Source
pub trait CaptchaVerifier: Send + Sync {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn verify(&self, request: VerificationRequest) -> VerificationFuture<'_>;
}
Expand description

Provider-independent interface implemented by CAPTCHA adapters.

Required Methods§

Source

fn provider(&self) -> &ProviderId

Identifies the backing provider.

Source

fn verify(&self, request: VerificationRequest) -> VerificationFuture<'_>

Verifies a client token and returns a normalized result.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§