Trait gotham_restful::IntoResponse
source · [−]pub trait IntoResponse {
type Err: Into<HandlerError> + Send + Sync + 'static;
fn into_response(self) -> BoxFuture<'static, Result<Response, Self::Err>>;
fn accepted_types() -> Option<Vec<Mime>> { ... }
}
Expand description
This trait needs to be implemented by every type returned from an endpoint to to provide the response.
Associated Types
Required methods
Provided methods
fn accepted_types() -> Option<Vec<Mime>>
fn accepted_types() -> Option<Vec<Mime>>
Return a list of supported mime types.