3 releases
new 0.1.2 | Oct 21, 2024 |
---|---|
0.1.1 | Jan 18, 2023 |
0.1.0 | Jan 18, 2023 |
#897 in Database interfaces
366 downloads per month
Used in rocket_authifier
4KB
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
use rocket_empty::EmptyResponse;
#[openapi(tag = "Tagged")]
#[get("/test")]
pub async fn test() -> EmptyResponse {
EmptyResponse
// Responds with "204 No Content"
}
Dependencies
~15–49MB
~786K SLoC