Skip to main content

CaptchaVerifier

Trait CaptchaVerifier 

Source
pub trait CaptchaVerifier: Send + Sync {
    // Required methods
    fn provider(&self) -> &ProviderId;
    fn verify(
        &self,
        request: VerificationRequest,
    ) -> Pin<Box<dyn Future<Output = Result<VerificationResult, VerificationError>> + Send + '_>>;
}
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, ) -> Pin<Box<dyn Future<Output = Result<VerificationResult, VerificationError>> + Send + '_>>

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§