Enum serde_codegen_internals::attr::RenameRule
[−]
[src]
pub enum RenameRule { None, PascalCase, CamelCase, SnakeCase, ScreamingSnakeCase, KebabCase, }
Variants
None
Don't apply a default rename rule.
PascalCase
Rename direct children to "PascalCase" style, as typically used for enum variants.
CamelCase
Rename direct children to "camelCase" style.
SnakeCase
Rename direct children to "snake_case" style, as commonly used for fields.
ScreamingSnakeCase
Rename direct children to "SCREAMING_SNAKE_CASE" style, as commonly used for constants.
KebabCase
Rename 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) -> bool
1.0.0
This method tests for !=
.