Enum serde_codegen_internals::attr::RenameRule
[−]
[src]
pub enum RenameRule {
None,
PascalCase,
CamelCase,
SnakeCase,
ScreamingSnakeCase,
KebabCase,
}Variants
NoneDon't apply a default rename rule.
PascalCaseRename direct children to "PascalCase" style, as typically used for enum variants.
CamelCaseRename direct children to "camelCase" style.
SnakeCaseRename direct children to "snake_case" style, as commonly used for fields.
ScreamingSnakeCaseRename direct children to "SCREAMING_SNAKE_CASE" style, as commonly used for constants.
KebabCaseRename direct children to "kebab-case" style.
Methods
impl RenameRule[src]
fn apply_to_variant(&self, variant: &str) -> String
fn apply_to_field(&self, field: &str) -> String
Trait Implementations
impl Debug for RenameRule[src]
impl PartialEq for RenameRule[src]
fn eq(&self, __arg_0: &RenameRule) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.