-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Derive Queryable deserialize_as attribute doesn't support tuples #3920
Comments
Thanks for opening this bug report. The relevant parsing code for that is here: diesel/diesel_derives/src/attrs.rs Line 43 in d3f7099
and here: diesel/diesel_derives/src/attrs.rs Line 148 in d3f7099
I'm happy to accept a PR that extends the parsing code there to allow something else than |
I'm not sure the issue is Do you want me to simply revert or would you like to support only a subset of Type ? |
Thanks for digging that up. I think it should be fine to support all possible Likely we want the parser to accept all variants and then have a later check that just filters out some of them? |
Hey 👋 Sorry for the delay I'm aligned with:
I'll suggest a PR in the coming months 😊 |
Setup
Versions
Feature Flags
features = ["postgres", "r2d2", "serde_json", "chrono"]
Problem Description
When using derive macro
Queryable
attributedeserialize_as
with a tuple I get the errorexpected identifier
:What are you trying to accomplish?
Use a tuple with deserialize_as
What is the expected output?
Compiles
What is the actual output?
Doesn't compile
Are you seeing any additional errors?
No
Steps to reproduce
Checklist
closed if this is not the case)
The text was updated successfully, but these errors were encountered: