serde_alias 0.0.2

An attribute macro to apply serde aliases to all struct fields
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate serde_alias;

use serde::{Deserialize, Serialize};
use serde_alias::serde_alias;

#[serde_alias(camelCase)]
#[derive(Serialize, Deserialize, Debug, Eq, PartialEq)]
struct Foo {
    bar: String,
    bar1: String,
    bar2: String,
    bar3: String,
    bar4: String,
}

fn main() {}