captval_derive 0.1.2

Derive macro for captval. Please use captval crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use captval_derive::Captval;

#[derive(Debug, Captval)]
pub struct ContactForm {
    name: String,
    #[allow(dead_code)]
    phone: String,
    email: String,
    #[allow(dead_code)]
    message: String,
    #[captcha]
    token: String,
}