Query structs with Vectors — wait what? #1964
-
Forgive me being stupid, I recognize I should be able to figure this out from this: #434 (comment) ...but is this actually supported for any particular url encoding? Can someone provide an example of a valid query vector as represented in the request URI? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is no standard way to encode query params as sequences, so axum's default You'll wanna use https://docs.rs/axum-extra/latest/axum_extra/extract/struct.Query.html (notice this is in axum-extra) or https://crates.io/crates/serde_qs (which have axum support) instead. |
Beta Was this translation helpful? Give feedback.
There is no standard way to encode query params as sequences, so axum's default
Query
extractor doesn't support it.You'll wanna use https://docs.rs/axum-extra/latest/axum_extra/extract/struct.Query.html (notice this is in axum-extra) or https://crates.io/crates/serde_qs (which have axum support) instead.