Expand description
Conversion of OpenAPI names into valid, idiomatic Rust identifiers and derivation of per-operation artifact names.
Modules§
- operations
- Derivation of the Rust names of the artifacts generated for an operation. Deriving the Rust names of the artifacts generated for one OpenAPI operation.
Structs§
- Rust
Ident - A Rust identifier together with whether it must be emitted as a raw
identifier (
r#name).
Enums§
- Case
- Casing to apply when converting a name.
Functions§
- deconflict_
ident - Make
identunique among the identifiers inseen. A collision gets the lowest free numeric suffix:Foo,Foo2,Foo3, and so on. The function adds the chosen identifier toseen. The key is the logical identifier text, sofooandFoocount as different identifiers. - rename_
for - Compute the serde
renamevalue for a member, given its wire name and the chosen Rust identifier. ReturnsNonewhen no rename attribute is needed. - to_
ident - Convert an arbitrary OpenAPI name into a valid Rust identifier in the requested case, escaping keywords and leading digits.