So being new to Rust, I had a need to deserialize json from "title case" format to snake case (e.g., {"Car Prop": 1, "Door Prop": 2}). The serde library in Rust seems to provide every common format except for this - https://serde.rs/container-attrs.html.
1) What is this bit of code called #[serde(rename_all = "...")] ? Is that a reference to a macro rule? And if so where in the serde code might I go looking for it?
2) How would I implement my own custom "container attr" to do the deserialize from "title case" json to a struct with properties in snake_case? I realize that could be quite involved so even an answer to 1 to get me pointed in the right direction would be a great help, thanks.