Skip to content

How to get multiple parameters while destructuring them at the same time? #3407

Answered by jplatte
Alc-Alc asked this question in Q&A
Discussion options

You must be logged in to vote

That's not possible. If you use the tuple form, every element of the tuple has to correspond to one path parameter. I think the last one being Vec for a wildcarm parameter works too, but not capturing multiple distinct parameters in a single tuple element.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Alc-Alc
Comment options

Answer selected by Alc-Alc
Comment options

You must be logged in to vote
2 replies
@jplatte
Comment options

@mladedav
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants