1 unstable release

0.2.3 Oct 20, 2021
0.2.2 Oct 20, 2021
0.1.2 Oct 19, 2021

#17 in #below

MIT license

12KB
215 lines

rust-test-validator

It is validate with message, rules and ValidationResult

Example below:

let rules_hash: HashMap<&str, Vec> = rule_map![
"ros" => vec![Rules::In {value: "123,asd,123".to_string()}],
"ross" => vec![Rules::GreaterThan {field:"as".to_string()}]
];

lib.rs:

It is validate with message, rules and ValidationResult
Example below:


  let rules_hash: HashMap<&str, Vec> = rule_map![
"ros" => vec![Rules::In {value: "123,asd,123".to_string()}],
"ross" => vec![Rules::GreaterThan {field:"as".to_string()}]
];

Dependencies

~2.5–4MB
~74K SLoC