Gild
Gild is a simple validation library in Rust, you can chain multiple conditions and check whether the input is valid. You can also write your own validators, if our set of validator conditions isn't enough.
Using it is as easy as this:
.add // false
.add // true
.validate
.is_ok;
new
Writing custom rules
We make use of Rust's great typesystem to create custom validators
;
If you wrote a validator that you think the community might want to use, feel free to open a PR
Validation rules
We currently have a small set of rules available:
MaxSize
MinSize
Contains
Empty
NotContains