Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

this error originates in the derive macro Dto #21

Open
male110 opened this issue Dec 8, 2022 · 1 comment
Open

this error originates in the derive macro Dto #21

male110 opened this issue Dec 8, 2022 · 1 comment

Comments

@male110
Copy link

male110 commented Dec 8, 2022

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)

@mb1986
Copy link
Owner

mb1986 commented Dec 8, 2022

Hi @male110 , I will check that, thanks for raising :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants