-
-
Notifications
You must be signed in to change notification settings - Fork 722
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
Document that filters::query::query uses serde_urlencoded, and add example for postprocessing filters::query::raw #687
Conversation
Yes this is a great idea, thanks! I wonder, what if instead of "promising" to use |
Hm, I'll rephrase it like that. But I do wonder whether it's accurate, or at least helpful. |
Maybe explicitly stating what can be decoded into is a good idea? |
sorry! missed this one and this has since been addressed by #843 |
I don't see how #843 documents what limitations the limitations of query parameter deserialization. I wouldn't consider this addressed. But I do feel like I'm being pedantic. In the off-case that you want me to renovate this PR, please do tell. |
Oh sorry! And no, not pedantic at all, if you want to rebase your PR against master and add the limitations of parameter deserialization that would be great! |
I've rebased on master and reworded it so the documentation doesn't leak any implementation details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks! Out of curiosity, what does Pars
mean in this context?
Ah, if you're asking, I should probably spell it out. |
Please notify me if you're still interested in this. I'll renovate it if so. |
serde_urlencoded
is used for to deserialize query strings, and hence not all structs that areDeserialize
can be deserialized to. I think it would be neat to document that fact and also added an example that shows how to use a different deserialization function instead.(I didn't want to add serde_qs as a dev-dependency just for this, so I fudged it.)
What do you think?