pub trait ApiResponse<T> {
// Required method
fn into_json_response(self) -> ApiJsonResponse<T>;
}Expand description
This trait allows to consume an object into an HTTP response.
Required Methods§
Sourcefn into_json_response(self) -> ApiJsonResponse<T>
fn into_json_response(self) -> ApiJsonResponse<T>
Consumes the value and creates a JSON or a Status result response.