4 ms·
you can statically type query param extraction with c.parse_params() and c.parse_query() let value: Json<MyStruct> = match c.parse_params().await < https://gi
by samuelbonill 4y ago
you can statically type query param extraction with c.parse_params() and c.parse_query()
let value: Json<MyStruct> = match c.parse_params().await
< https://github.com/graphul-rs/graphul#-resource https://github.com/graphul-rs/graphul#-resource >
- samuelbonill 4y agoor you can use an extractor in function base handlers, in struct base handlers you can use context c.parse_query()
- davidatbu 4y agoThanks! But you haven't convinced me that this adds any value right now on top of Axum, at all. Perhaps this is sort of an early release, since you mention elsewhere that the plan is to support GraphQL (and that would be the value-add)?
- samuelbonill 4y agothe idea is not to convince you, if you like another web framework like Axum, hyper, or actix you can use it, this framework is for other developers ( javascript, python, or rust developer that wants to start building microservices with rust with a friendly syntax like express or flask)
- davidatbu 4y agoI now understand the primary value-prop of this project is the friendlier syntax. Thanks for clearing that up!