Skip to main content

apply_rename_all

Function apply_rename_all 

Source
pub fn apply_rename_all(name: &str, rule: &str) -> String
Expand description

Applies a serde rename_all rule to an already-snake_case name.

Unknown rules are returned unchanged rather than guessed at — a wrong guess here would be reported as drift that does not exist.