1 unstable release
0.2.3 | Oct 20, 2021 |
---|---|
0.2.2 |
|
0.1.2 |
|
#17 in #below
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