Crates.io | val-test |
lib.rs | val-test |
version | 0.2.3 |
source | src |
created_at | 2021-10-19 12:20:13.373556 |
updated_at | 2021-10-20 12:53:24.539113 |
description | test lib for crate |
homepage | https://github.com/ogtayhuseynov0/rust-test-validator |
repository | https://github.com/ogtayhuseynov0/rust-test-validator |
max_upload_size | |
id | 467337 |
size | 13,163 |
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()}]
];