Chrislearn Young
Chrislearn Young
Yes, you can use your custom enum type, but create many enum types is more complex than just give code in endpoint.
You can try this this: ```rust #[derive(salvo_oapi::ToResponses)] enum UserResponses { /// Success response description. #[salvo(response(status_code = 200))] Success { value: String }, #[salvo(response(status_code = 404))] NotFound, #[salvo(response(status_code = 400))] BadRequest(BadRequest),...
@CharlieBytesX There are many areas for improvement - The current documentation of many middlewares simply gives example codes, but does not explain in depth how to use them. - The...
https://github.com/salvo-rs/website This is the website repo, you can give PR to this repo.
like this? https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/frameworks/Rust/salvo/src/main_pg.rs
Any other web framework has this feature?
Can you provide a repository that contains the Dockerfile and the code you tested?
Can you give me the test project source code or repository url?
I have checked all futures in `run_server` is `Send`, hope the compiler will give more details about this error in future.
https://github.com/rust-lang/rust/issues/102211