Skip to content

Glossary: Rust in Practice

rename and rename_all

Also written: rename, rename_all

Serde attributes that map Rust names to different names in the data: `rename_all` changes every field or variant, and `rename` changes one.

Where the book teaches it

Related terms

camelCasesnake_caseserde