Trait gotham_restful::IntoResponse
source · pub trait IntoResponse {
type Err: Into<HandlerError> + Send + Sync + 'static;
// Required method
fn into_response(self) -> BoxFuture<'static, Result<Response, Self::Err>>;
// Provided method
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.
Required Associated Types§
Required Methods§
Provided Methods§
sourcefn accepted_types() -> Option<Vec<Mime>>
fn accepted_types() -> Option<Vec<Mime>>
Return a list of supported mime types.