pub fn json(
status: StatusCode,
body: &impl Serialize,
) -> Result<HandleResponse, ResponseBuildError>Expand description
Serializes a typed value and returns a JSON response.
pub fn json(
status: StatusCode,
body: &impl Serialize,
) -> Result<HandleResponse, ResponseBuildError>Serializes a typed value and returns a JSON response.