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

Bool from anything #710

Open
estk opened this issue Feb 29, 2024 · 1 comment
Open

Bool from anything #710

estk opened this issue Feb 29, 2024 · 1 comment

Comments

@estk
Copy link

estk commented Feb 29, 2024

I've been trying to migrate from serde_aux to this lib and having trouble finding the equivalent of serde_aux::deserialize_bool_from_anything.

I was wondering if I'm missing something or if equivalent functionality just doesnt exist here yet.

@jonasbb
Copy link
Owner

jonasbb commented Feb 29, 2024

There is no direct equivalent for this. Most/all conversion types in this crate have a serialization function too. But it is possible to take the code from serde_aux and fill a DeserializeAs implementation with it. Although rewriting it to use a Visitor might help with error reporting.

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

No branches or pull requests

2 participants