Read #[validate(...)] attributes
This commit is contained in:
parent
dada8582ee
commit
6ab567f3a5
13 changed files with 532 additions and 33 deletions
|
@ -1,6 +1,6 @@
|
|||
mod from_serde;
|
||||
|
||||
use crate::attr::Attrs;
|
||||
use crate::attr::{Attrs, ValidationAttrs};
|
||||
use from_serde::FromSerde;
|
||||
use serde_derive_internals::ast as serde_ast;
|
||||
use serde_derive_internals::{Ctxt, Derive};
|
||||
|
@ -34,6 +34,7 @@ pub struct Field<'a> {
|
|||
pub ty: &'a syn::Type,
|
||||
pub original: &'a syn::Field,
|
||||
pub attrs: Attrs,
|
||||
pub validation_attrs: ValidationAttrs,
|
||||
}
|
||||
|
||||
impl<'a> Container<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue