Closed odra closed 1 year ago
As mentioned in the docs (https://github.com/Keats/validator#must_match), must_match
must refer to another field in the struct, not an arbitrary value.
There is a regex validator in case you need to validate the content of a string
Hello,
I am trying to use the
must_match
validator function based on what's documented in the readme file:Compling the above code leads to the following error:
I tried other validator functions such as the regex one and it worked ok.
Am I missing something?
Validator version: 0.15