pub fn spec(&self) -> String
    where
        T: OpenApi,
        W: Webhook,
    {
        let mut registry = Registry::new();
        let metadata = T::meta();
        T::register(&mut registry);
        W::register(&mut registry);

        let webhooks = W::meta();

        let doc = Document {
            info: &self.info,
            servers: &self.servers,
            apis: &metadata,
            webhooks: &webhooks,
            registry: &registry,
            external_document: self.external_document.as_ref(),
        };
        serde_json::to_string_pretty(&doc).unwrap()
    }
/// Returns the OAS specification file.
Returns the OAS specification file.
Returns the OAS specification file .
pub fn spec(&self) -> String
    where
        T: OpenApi,
        W: Webhook,
    {
        let mut registry = Registry::new();
        let metadata = T::meta();
        T::register(&mut registry);
        W::register(&mut registry);
        let webhooks = W::meta();
        let doc = Document {
            info: &self.info,
            servers: &self.servers,
            apis: &metadata,
            webhooks: &webhooks,
            registry: &registry,
            external_document: self.external_document.as_ref(),
        };
        serde_json::to_string_pretty(&doc).unwrap()
    }
pub fn spec ( & self ) -> String where T : OpenApi , W : Webhook , { let mut registry = Registry :: new ( ) ; let metadata = T :: meta ( ) ; T :: register ( & mut registry ) ; W :: register ( & mut registry ) ; let webhooks = W :: meta ( ) ; let doc = Document { info : & self . info , servers : & self . servers , apis : & metadata , webhooks : & webhooks , registry : & registry , external_document : self . external_document . as_ref ( ) , } ; serde_json :: to_string_pretty ( & doc ) . unwrap ( ) }
Returns the OAS specification file.
Returns the OAS specification file .
&self