Skip to content

TypedPath with extractors like Query, ContentLengthLimit etc #1215

Answered by BratSinot
BratSinot asked this question in Q&A
Discussion options

You must be logged in to vote
#[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))

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by BratSinot
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants