Support NonZero types
timvisee opened this issue · 0 comments
timvisee commented
I'd like to see support for NonZero types from the standard library such as NonZeroU64
. We'd like to use this in Qdrant.
For example:
#[derive(Debug, Validate)]
struct TestStruct {
#[validate(range(min = 5, max = 10))]
val: NonZeroU64,
}
Is this something that can be implemented within this crate, or is it out of scope?
I started an implementation in #270.