[−][src]Enum serde_codegen_internals::attr::RenameRule
Variants
Don't apply a default rename rule.
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]
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]
fn eq(&self, other: &RenameRule) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl Debug for RenameRule
[src]
impl FromStr for RenameRule
[src]
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,