-
Notifications
You must be signed in to change notification settings - Fork 52
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
Validate each field individually #105
Comments
What does Either way, unlike #67 this is not something we can solve with a trait impl because we'd need one for each field. Maybe when const macros would support |
Yeah, idk why I thought of This would make most sense I guess? Idk much about how typed_builder works. Do you think I couldn't find a way to make this work, that you would accept? |
It can be done, but we need to come up with a good syntax. |
Maybe you could use newtype instead |
Is it possible (would it be possible?) to have each field validated when it is added?
It could look something like
Foo::builder().x(1).try_into().y(2).try_into().z(3).try_into().build();
.The text was updated successfully, but these errors were encountered: