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)]
enum Status<F: FieldFamily> {
    #[validatable(default = 9)]
    Active { id: Field<F, u8> },
    Inactive,
}

fn main() {}