rocket_empty 0.1.2

Provides a 204 No Content responder for Rocket. Includes optional schema definition.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# rocket_empty

`rocket_empty` provides a singular struct `EmptyResponse` 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

```rust
use rocket_empty::EmptyResponse;

#[openapi(tag = "Tagged")]
#[get("/test")]
pub async fn test() -> EmptyResponse {
    EmptyResponse
    // Responds with "204 No Content"
}
```