pub trait AutoDocs {
// Required method
fn with_auto_docs(self, spec: OpenApiSpec) -> Self;
}Expand description
Auto-documentation trait for routers
Required Methods§
Sourcefn with_auto_docs(self, spec: OpenApiSpec) -> Self
fn with_auto_docs(self, spec: OpenApiSpec) -> Self
Register the /api/docs endpoint with OpenAPI documentation
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.