Trait hypers_openapi::ToResponse

source ·
pub trait ToResponse {
    // Required method
    fn to_response(components: &mut Components) -> RefOr<Response>;
}

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl<C> ToResponse for Json<C>
where C: ToSchema,

source§

fn to_response(components: &mut Components) -> RefOr<Response>

Implementors§