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.