Skip to main content

Module codegen

Module codegen 

Source
Expand description

Server codegen — trait + typed response enums (P4).

Emits one trait per tag (or a ServerApi trait for untagged operations) plus a per-operation response enum with an IntoResponse impl that maps each variant to its documented status code.

Router wiring, extractors, and SSE response variants are P5.

Structs§

ServerCodegen

Enums§

ServerCodegenError

Functions§

reachable_schemas
Compute the set of schema names transitively reachable from the request/response/parameter shapes of the given operations.