captval 0.1.2

Captcha validators
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Captval Trait
use crate::{Error, Response};
// use async_trait::async_trait;
use std::{future::Future, pin::Pin};

/// Captval trait
pub trait Captval {
    /// valid response function
    fn valid_response(
        &self,
        secret: &str,
        uri: Option<String>,
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>>>>;
}