Enum serde_derive_internals::attr::RenameRule [] [src]

pub enum RenameRule {
    None,
    LowerCase,
    PascalCase,
    CamelCase,
    SnakeCase,
    ScreamingSnakeCase,
    KebabCase,
}

Variants

Don't apply a default rename rule.

Rename direct children to "lowercase" style.

Rename direct children to "PascalCase" style, as typically used for enum variants.

Rename direct children to "camelCase" style.

Rename direct children to "snake_case" style, as commonly used for fields.

Rename direct children to "SCREAMING_SNAKE_CASE" style, as commonly used for constants.

Rename direct children to "kebab-case" style.

Methods

impl RenameRule
[src]

Trait Implementations

impl Debug for RenameRule
[src]

Formats the value using the given formatter.

impl PartialEq for RenameRule
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl FromStr for RenameRule
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more