Enum serde_derive_internals::attr::RenameRule
[−]
[src]
pub enum RenameRule { None, LowerCase, PascalCase, CamelCase, SnakeCase, ScreamingSnakeCase, KebabCase, ScreamingKebabCase, }
Variants
None
Don't apply a default rename rule.
LowerCase
Rename direct children to "lowercase" style.
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.
ScreamingKebabCase
Rename 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 Debug for RenameRule
[src]
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) -> bool
1.0.0[src]
This method tests for !=
.