Skip to main content

to_ident

Function to_ident 

Source
pub fn to_ident(name: &str, case: Case) -> RustIdent
Expand description

Convert an arbitrary OpenAPI name into a valid Rust identifier in the requested case, escaping keywords and leading digits.