Replies: 1 comment
-
|
I think this does make sense for I don't think it makes sense as a blanket implementation for #[get("/item/<id>?<track>")]
fn get_item(id: i32, track: Option<u8>) { /* .. */ }
uri!(get_item(id = 100, track = _));A PR to add a |
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.
-
Would it make sense to make
VecimplementIgnorable? Right now onlyOptionandResultareIgnorable: https://api.rocket.rs/v0.5/rocket/http/uri/fmt/trait.IgnorableIt would be great if I could pass
uri!(my_route(things = _))whenthings: Vec<_>-- especially because I can't just usevec![]; I need to specify type annotations:uri!(my_route(things = Vec::<Thing>::new())). It's kind of annoying and doesn't let me easily read it as "oh, I just want the default value here".For that matter, should there be a blanket implementation for
Default?Beta Was this translation helpful? Give feedback.
All reactions