Skip to main content

json

Function json 

Source
pub fn json(
    status: StatusCode,
    body: &impl Serialize,
) -> Result<HandleResponse, ResponseBuildError>
Expand description

Serializes a typed value and returns a JSON response.