wtforms 0.0.1

A library for form validation and rendering, based on Python WTForms.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use failure::Error;

use forms::Form;

pub struct Field<T> {
    inner: T,
}

pub trait FieldExt {
    fn process<'a>(&self, input: &'a str) -> Result<(), Error>;

    fn validate(&self, form: &Form) -> Result<(), Error> {
        Ok(())
    }
}