We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Obvious follow-up to #4 I guess.
I know this is more user-friendly: #[validate(range(min = 18, max = 20))]
#[validate(range(min = 18, max = 20))]
But would it be possible to support this as well? #[validate(range(min = "18", max = "20"))]
#[validate(range(min = "18", max = "20"))]
And similar for the other validators. This would allow validators to be used on stable Rust 1.15.
It looks like this may be as simple as just extending the lit_to_int and lit_to_float functions to handle string literals.
lit_to_int
lit_to_float
The text was updated successfully, but these errors were encountered:
Yeah, that's the easy solution I think
Sorry, something went wrong.
Tooks lots of time but it's in 0.2.0 (along with struct level validation)
No branches or pull requests
Obvious follow-up to #4 I guess.
I know this is more user-friendly:
#[validate(range(min = 18, max = 20))]
But would it be possible to support this as well?
#[validate(range(min = "18", max = "20"))]
And similar for the other validators. This would allow validators to be used on stable Rust 1.15.
It looks like this may be as simple as just extending the
lit_to_int
andlit_to_float
functions to handle string literals.The text was updated successfully, but these errors were encountered: