Skip to main content

Module responses

Module responses 

Source
Expand description

Success response shapes beyond Json<T>.

Each type implements axum::response::IntoResponse and is recognised by the route macro’s return-type walker so its inner payload type contributes to the OpenAPI response schema and its status code becomes the operation’s default success code.

Structs§

Accepted
202 Accepted — for async / queued work.
Created
201 Created with an optional Location header.
NoContent
204 No Content. Carries no body.