| Package | Description |
|---|---|
| org.openapitools.codegen.languages |
| Modifier and Type | Method and Description |
|---|---|
static AbstractRustCodegen.CasingType |
AbstractRustCodegen.CasingType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AbstractRustCodegen.CasingType[] |
AbstractRustCodegen.CasingType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
AbstractRustCodegen.sanitizeIdentifier(String name,
AbstractRustCodegen.CasingType casingType,
String escapePrefix,
String type,
boolean allowRawIdentifiers)
General purpose sanitizing function for Rust identifiers (fields, variables, structs, parameters, etc.).
Rules for Rust are fairly simple: Characters must belong to [A-Za-z0-9_] Cannot use reserved words (but can sometimes prefix with "r#") Cannot begin with a number |
Copyright © 2023. All rights reserved.