pub struct PostVo{
title:String,
body:String
}
use dto_derive::Dto;
use crate::vo::post::PostVo;
#[derive(Dto)]
#[dto(request)]
#[dto(entity="PostVo")]
#[dto(map="body:content")]
#[dto(skip = "csrf_token")]
pub struct NewPost{
pub(crate) title:String,
pub(crate) content:String,
pub(crate) csrf_token:String,
}
#[derive(Dto)]
| ^^^ private field
|
= note: this error originates in the derive macro Dto (in Nightly builds, run with -Z macro-backtrace for more info)
pub struct PostVo{
title:String,
body:String
}
use dto_derive::Dto;
use crate::vo::post::PostVo;
#[derive(Dto)]
#[dto(request)]
#[dto(entity="PostVo")]
#[dto(map="body:content")]
#[dto(skip = "csrf_token")]
pub struct NewPost{
pub(crate) title:String,
pub(crate) content:String,
pub(crate) csrf_token:String,
}
#[derive(Dto)]
| ^^^ private field
|
= note: this error originates in the derive macro
Dto(in Nightly builds, run with -Z macro-backtrace for more info)