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
Deserialize true/false from 1/0 #456
Comments
Hi, thanks for the feedback. Could you please expand more on what exactly your needs are? The linked issue only mentions parsing from 0/1. But there are many variants possible. For integers you could also allow all numbers and check for Do you also require parsing strings to bools, something like "t" or "f"? |
For my personal purpose, I expect only the integer |
@jonasbb : after adding BoolFromInt, I can not use parameter What should I do to support both ways? |
Thanks, I created a new issue here #631 |
It'd be useful to have
bool_from_int
shown in serde-rs/serde#1344.The text was updated successfully, but these errors were encountered: