[][src]Enum serde_codegen_internals::attr::RenameRule

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]

pub fn apply_to_variant(&self, variant: &str) -> String[src]

pub fn apply_to_field(&self, field: &str) -> String[src]

Trait Implementations

impl PartialEq<RenameRule> for RenameRule[src]

impl Debug for RenameRule[src]

impl FromStr for RenameRule[src]

type Err = ()

The associated error which can be returned from parsing.

Auto Trait Implementations

impl Send for RenameRule

impl Unpin for RenameRule

impl Sync for RenameRule

impl UnwindSafe for RenameRule

impl RefUnwindSafe for RenameRule

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]