Skip to main content

SchemaFn

Type Alias SchemaFn 

Source
pub type SchemaFn = fn(&mut SchemaGenerator) -> Schema;
Expand description

Builds the schema for a Json<T> request body or response, recording named component schemas in the shared generator. #[routes] emits one per JSON payload it finds; a non-Json<…> body/return carries None and imposes no JsonSchema bound.