Enum serde_derive_internals::attr::RenameRule
[−]
[src]
pub enum RenameRule {
None,
LowerCase,
UPPERCASE,
PascalCase,
CamelCase,
SnakeCase,
ScreamingSnakeCase,
KebabCase,
ScreamingKebabCase,
}Variants
NoneDon't apply a default rename rule.
LowerCaseRename direct children to "lowercase" style.
UPPERCASERename direct children to "UPPERCASE" style.
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.
ScreamingKebabCaseRename direct children to "SCREAMING-KEBAB-CASE" style.
Methods
impl RenameRule[src]
pub fn apply_to_variant(&self, variant: &str) -> String[src]
pub fn apply_to_field(&self, field: &str) -> String[src]
Trait Implementations
impl PartialEq for RenameRule[src]
fn eq(&self, __arg_0: &RenameRule) -> bool[src]
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[src]
This method tests for !=.