pub fn spec_endpoint(&self) -> impl Endpoint
    where
        T: OpenApi,
        W: Webhook,
    {
        let spec = self.spec();
        make_sync(move |_| {
            Response::builder()
                .content_type("application/json")
                .body(spec.clone())
        })
    }
/// Create an endpoint to serve the open api specification.
Create an endpoint to serve the open api specification.
Create an endpoint to serve the open api specification .
pub fn spec_endpoint(&self) -> impl Endpoint
    where
        T: OpenApi,
        W: Webhook,
    {
        let spec = self.spec();
        make_sync(move |_| {
            Response::builder()
                .content_type("application/json")
                .body(spec.clone())
        })
    }
pub fn spec_endpoint ( & self ) -> impl Endpoint where T : OpenApi , W : Webhook , { let spec = self . spec ( ) ; make_sync ( move | _ | { Response :: builder ( ) . content_type ( " " ) . body ( spec . clone ( ) ) } ) }
Create an endpoint to serve the open api specification.
Create an endpoint to serve the open api specification .
&self