diff options
| author | Vincent Prouillet | 2017-01-19 13:43:47 +0900 | 
|---|---|---|
| committer | Vincent Prouillet | 2017-01-19 13:43:47 +0900 | 
| commit | f0d905a77c2d546ae99e26818cd1a7ddec9f0c70 (patch) | |
| tree | 879a3631a24e3c13c86566e07bb8b46d63090bac | |
| parent | c8fb03bdd7391fc7b9fdc56efcc55a5eec08e19c (diff) | |
| download | validator-f0d905a77c2d546ae99e26818cd1a7ddec9f0c70.tar.bz2 | |
Update readme
| -rw-r--r-- | README.md | 4 | 
1 files changed, 4 insertions, 0 deletions
| @@ -53,6 +53,10 @@ Note that `validator` works in conjunction with serde: in the example we can see  field is renamed from/to `firstName`. Any error on that field will be in the `firstName` key of the hashmap,  not `first_name`. +If you are adding a validation on a `Option<..>` field, it will only be ran if there is value. The exception +being `must_match` that doesn't currently work with `Option` due to me not finding a use case for it. If you have one, +please comment on https://github.com/Keats/validator/issues/7. +  ## Usage  You will need to import the `Validate` trait, and optionally use the `attr_literals` feature. | 
