validate 0.1.0

A library to easily validate user input
Documentation

Validate

A library to easily validate user input

Usage

Add this to your Cargo.toml:

[dependencies]
validate = "*"

and this to your crate root:

extern crate validate;

Example

use validate::Schema;
let schema = Schema::new().email().length(1..100);
assert!(schema.validate(&"test@domain.com").is_ok());
assert!(schema.validate(&"notvalidemail").is_err());