validatable 0.1.0

Define validated data types once and share them between the frontend and backend of isomorphic Rust web applications, with plain, input, and form representations
Documentation
1
2
3
4
5
6
7
8
9
10
use validatable::*;

#[derive(Validatable)]
struct Test<F: FieldFamily> {
    #[validatable(default = 1)]
    #[validatable(default = 2)]
    field1: Field<F, u8>,
}

fn main() {}