mapper 1.1.4

Mapping macro to help to reduce mapping boilerplate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use mapper_impl::Mapper;

fn with_test(val: &String)->String{
    val
}

#[derive(Mapper)]
#[to(Person,strategy=into)]
pub struct User{
    #[to(Person, with=with_test)]
    pub name: String
}

pub struct Person{
    pub name: String
}

fn main(){}