pub trait ResourceResult {
    fn into_response(self) -> Result<Response, SerdeJsonError>;
fn schema() -> OpenapiSchema; fn accepted_types() -> Option<Vec<Mime>> { ... }
fn default_status() -> StatusCode { ... } }
Expand description

A trait provided to convert a resource’s result to json.

Required methods

Turn this into a response that can be returned to the browser. This api will likely change in the future.

Provided methods

Return a list of supported mime types.

Implementations on Foreign Types

Implementors