Skip to main content

Module prelude

Module prelude 

Source
Expand description

Prelude module that re-exports common API types and utilities for module authors

Re-exports§

pub use crate::result::ApiResult;
pub use super::response::JsonBody;
pub use super::response::JsonPage;
pub use super::response::created_json;
pub use super::response::no_content;
pub use super::response::ok_json;
pub use super::select::apply_select;

Structs§

Json
JSON Extractor / Response.
Problem
RFC 9457 Problem Details for HTTP APIs.
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).

Traits§

IntoResponse
Trait for generating responses.