3 ms·
> Even serde has `#[serde(rename = "name")]` for this purpose. You can use `#[serde(rename_all = "camelCase")]`[1] in the struct to apply the fix to all fields
by ayosec 9y ago
> Even serde has `#[serde(rename = "name")]` for this purpose.
You can use `#[serde(rename_all = "camelCase")]`[1] in the struct to apply the fix to all fields.
[1]: https://serde.rs/container-attrs.html#serderenameall-- https://serde.rs/container-attrs.html#serderenameall--