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
How to pass Vec of struct in the URL? #27
Comments
i found |
Also having the same issue. Serializing a I would be happy to send a PR which tries to fix this @samscott89 - could you give me some pointers? |
Unfortunately not. Normally for vectors you can omit the number and it will automatically infer the index. But in this case, the ordering is super important, and you need to remember what you have seen across indices so that you parse
To be clear - is For the case where you want to serialize the vector as comma-separated. This isn't currently supported, but there is an example of achieving similar using serde attributes in the examples. Would you be able to do something like that? edit to add: if you don't have structs, you may find that you don't gain much by using |
i have tried
address[]
, but i don't know how to pass a struct in the URL. i always getinvalid type: ... expected struct Address
The text was updated successfully, but these errors were encountered: