Skip to main content

Module ident

Module ident 

Source

Functions§

field_ident
normalize_ident
query_params_name
query_row_name
to_pascal_case
to_snake_case
type_ident
variant_ident
For enum variants: PascalCase with keyword escaping. Converts val to PascalCase, then checks whether the result would collide with a Rust keyword by checking both the PascalCase form and its snake_case equivalent against the keyword list. Example: “type” → PascalCase “Type” → snake “type” → keyword → emits r#Type.