Trait poem::web::IntoResponse [−][src]
pub trait IntoResponse { fn into_response(self) -> Result<Response>; }
Expand description
Trait for generating responses.
Types that implement IntoResponse can be returned from endpoints/handlers.
Required methods
fn into_response(self) -> Result<Response>
fn into_response(self) -> Result<Response>
Consume itself and return Response
.