Replies: 1 comment
-
Finally solved it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I need to implement multiple similar routes, which contains lots of handler. Some of the handler could be reused, while some of the handlers' logic are different. So I try to make a handler trait that can be implemented for some unit structs. I managed to make the following code work
But then it fails to compile if I add associated type to the handler parameter.
with compile error
I don't know what to do next based on the given errors, and #[axum_macros::debug_handler] seems not working in trait. Could someone help me please?
Beta Was this translation helpful? Give feedback.
All reactions