simple_dto_mapper_derive 0.1.1

A derive macro for mapping DTOs with rename/transform/skip support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use simple_dto_mapper_derive::DtoFrom;

mod types {
    pub struct Source {
        pub id: String,
    }
}

#[derive(DtoFrom)]
struct Dto {
    id: String,
}

fn main() {}