pub trait IntoResponse {
// Required method
fn into_response(self) -> Response<Body>;
}Expand description
A conversion of self into a Response<Body> for various types.
Implementations for Response<B> where B: Into<Body>,
B where B: Into<Body> and serde_json::Value are provided
by default.
Required Methods§
Sourcefn into_response(self) -> Response<Body>
fn into_response(self) -> Response<Body>
Return a translation of self into a Response<Body>