hcaptcha_no_wasm/hcaptcha.rs
1//! Hcaptcha Trait
2use crate::{Error, Response};
3// use async_trait::async_trait;
4use std::{future::Future, pin::Pin};
5
6/// Hcaptcha trait
7pub trait Hcaptcha {
8 /// valid response function
9 fn valid_response(
10 &self,
11 secret: &str,
12 uri: Option<String>,
13 ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send>>;
14}