diff options
| author | Andras Mocsary | 2019-09-06 16:30:54 +0200 | 
|---|---|---|
| committer | Andras Mocsary | 2019-10-14 15:40:21 +0200 | 
| commit | ac3810f68d2dd86c17a57593959506bd1b99cab5 (patch) | |
| tree | 95c93dc52f8741212f073396304e6341ad2cd743 /README.md | |
| parent | 87cf7cdac24dd0d4ea83a8a88640da95ae7ac93a (diff) | |
| download | validator-ac3810f68d2dd86c17a57593959506bd1b99cab5.tar.bz2 | |
Add utf-8 non-control chars validator
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 5 | 
1 files changed, 5 insertions, 0 deletions
| @@ -255,6 +255,11 @@ Examples:  #[validate]  ``` +### non_control_character +Tests whether the String has any utf-8 control caracters, fails validation if it does. +To use this validator, you must enable the `unic` feature for the `validator_derive` crate. +This validator doesn't take any arguments: `#[validate(non_control_character)]`; +  ## Struct level validation  Often, some error validation can only be applied when looking at the full struct, here's how it works here: | 
