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() {}