Skip to content
New issue

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

Support NonZero types #269

Open
timvisee opened this issue Aug 31, 2023 · 0 comments · May be fixed by #270
Open

Support NonZero types #269

timvisee opened this issue Aug 31, 2023 · 0 comments · May be fixed by #270

Comments

@timvisee
Copy link

timvisee commented Aug 31, 2023

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.

@timvisee timvisee linked a pull request Aug 31, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant