Skip to content

Is there a way to read one query string param without serde at all? #1635

Answered by davidpdrsn
frederikhors asked this question in Q&A
Discussion options

You must be logged in to vote

Do you mean query params or path params? https://domain.com/players/123456789 doesn't contain query params.

Regardless you can parse it as Query<HashMap<String, String>> or Path<HashMap<String, String>>.

For path params you can also use Path<T> for any T: Deserialize. For example Path<i32>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by frederikhors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants