Cannot access State in a FromRequestParts implementation #2763
-
SummaryWhen I attempt to extract value in a handler like so... handler.rs
...error below is raised:
My initial attempt to implement extract.rs
After some back-and-forth I came up with the second attempt to no avail: extract.rs
I feel like my error is unrelated to main.rs
routes.rs
auth.rs
axum version0.7.5 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Btw my state is:
|
Beta Was this translation helpful? Give feedback.
-
Could it be that you're using |
Beta Was this translation helpful? Give feedback.
Could it be that you're using
#[debug_handler]
on your handler function without specifying the state type? It will only be inferred if you use theState
extractor.