Trait hypers_openapi::ToResponse
source · pub trait ToResponse {
// Required method
fn to_response(components: &mut Components) -> RefOr<Response>;
}
Required Methods§
sourcefn to_response(components: &mut Components) -> RefOr<Response>
fn to_response(components: &mut Components) -> RefOr<Response>
Returns a tuple of response component name (to be referenced) to a response.
Object Safety§
This trait is not object safe.