Replies: 4 comments
-
Okey, seems what problem in param struct: #[derive(TypedPath, Deserialize)]
#[typed_path("/env_vars/rust_log")]
pub struct Param {
rust_log: SmolStr,
}
|
Beta Was this translation helpful? Give feedback.
-
Ow, I think I got it. No way to use |
Beta Was this translation helpful? Give feedback.
-
#[derive(Deserialize)]
pub struct Param {
rust_log: SmolStr,
}
#[derive(Deserialize, TypedPath)]
#[typed_path("/env_vars/rust_log")]
pub struct UpdateFilterPath;
<...>
.typed_post(move |path, param| handle(path, context, param)) |
Beta Was this translation helpful? Give feedback.
-
The extractors don't go inside the struct. That's for path params like The extractors go in the function signature like any other extractor.
That should just work like normal. |
Beta Was this translation helpful? Give feedback.
-
Greetings!
Does
axum-extra
TypedPath
macro can't work with extractors? I'm getting errors:Beta Was this translation helpful? Give feedback.
All reactions