[−][src]Trait lando::IntoResponse
A conversion of self into a Response
Implementations for Response<B> where B: Into<Body>
,
B where B: Into<Body>
and serde_json::Value
are provided
example
use lando::{Body, IntoResponse, Response}; assert_eq!( "hello".into_response().body(), Response::new(Body::from("hello")).body() );
Required Methods
fn into_response(self) -> Response<Body>
Return a translation of self
into Response<Body>
Implementations on Foreign Types
impl IntoResponse for Value
[src]
impl IntoResponse for Value
fn into_response(self) -> Response<Body>
[src]
fn into_response(self) -> Response<Body>