Custom extractor for Queries with fields that have enums with enum values #2683
Answered
by
jplatte
Gautham-kj
asked this question in
Q&A
-
SummaryThe given below is the query parameter that I want to write a custom extractor for
The entire Query struct is below
This is my first project in rust and I wanted help to understand how to create a custom extractor with axum version0.7.4 |
Beta Was this translation helpful? Give feedback.
Answered by
jplatte
Mar 26, 2024
Replies: 1 comment 3 replies
-
Sorry, what is it that you want to customize? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You don't need a custom extractor in that case. You just need to change your data structures or how
Deserialize
is implemented for them.If changing your data types and the serialized format is an option, the easiest fix would probably be to move the order to a separate parameter, i.e.
If you want to keep the types defined as-is, yo…