2023-01-18 14:42:57 +00:00
2022-06-02 15:06:53 +01:00
2023-01-18 14:42:57 +00:00
2022-06-02 15:06:53 +01:00
2022-06-02 15:06:53 +01:00

rocket_empty

rocket_empty provides a singular struct EmptyResponse (also aliased to NoContent) which has a Responder implementation that returns "204 No Content". In addition to this, it also implements a schema for okapi.

I got tired of copying the same struct and implementation between projects, so here it is.

Usage

use rocket_empty::EmptyResponse;

#[openapi(tag = "Tagged")]
#[get("/test")]
pub async fn test() -> EmptyResponse {
    EmptyResponse
    // Responds with "204 No Content"
}
S
Description
No description provided
Readme MIT 43 KiB
Languages
Rust 100%