Module auto_schema

Module auto_schema 

Source
Expand description

Auto-schema registration using linkme distributed slices

This module enables zero-config OpenAPI schema registration. Route macros can register schemas at link-time, and RustApi::auto() will collect and apply them before serving docs.

Statics§

AUTO_SCHEMAS
Distributed slice containing all auto-registered schema registration functions.

Functions§

apply_auto_schemas
Apply all auto-registered schemas into the given OpenAPI spec.
auto_schema_count
Get the count of auto-registered schema registration functions.