Skip to main content

Crate kamu_snap_response_axum

Crate kamu_snap_response_axum 

Source
Expand description

axum::response::IntoResponse adapter for kamu_snap_response::SnapResponse.

Wraps SnapResponse<T> in a newtype that implements IntoResponse for axum 0.8. Defensive fallback to INTERNAL_SERVER_ERROR if the responseCode cannot be parsed back into an HTTP status.

Structs§

AxumResponder
Newtype wrapping SnapResponse<T> for axum’s IntoResponse impl (orphan-rule shim).

Traits§

SnapResponderExt
Extension trait: .into_axum() on SnapResponse<T>.