Skip to main content

Module operations

Module operations 

Source
Expand description

Derivation of the Rust names of the artifacts generated for an operation. Deriving the Rust names of the artifacts generated for one OpenAPI operation.

Centralised so the server emitter and (later) the client emitter derive the same names from the same operation identifier, and cannot drift apart.

Functionsยง

axum_handler_name
cookies_struct_name
The generated cookie-struct name for an operation (<Op>Cookies).
headers_struct_name
multipart_struct_name
The generated multipart-extractor struct name for an operation (<Op>Multipart).
operation_method_name
query_struct_name
request_body_enum_name
The generated dispatch-enum name for an operation whose request body offers several content types (<Op>RequestBody).
response_body_enum_name
The generated body-enum name for a response variant that offers several content types (<Response><Variant>Body).
response_enum_name
The generated response-enum name for an operation, <Op><Suffix> (the suffix defaults to Response. Override it via response-type-suffix to resolve a clash with a component schema of the same name).