#[derive(Hcaptcha)]
{
// Attributes available to this derive:
#[captcha]
#[remoteip]
#[sitekey]
}
Expand description
Derive the Hcaptcha trait for a struct.
§Example
use hcaptcha::Hcaptcha;
#[derive(Hcaptcha)]
pub struct ContactForm {
name: String,
email: String,
phone: String,
message: String,
#[captcha]
token: String,
}