Struct serde_derive_internals::ast::Container
source · pub struct Container<'a> {
pub ident: Ident,
pub attrs: Container,
pub data: Data<'a>,
pub generics: &'a Generics,
pub original: &'a DeriveInput,
}
Expand description
A source data structure annotated with #[derive(Serialize)]
and/or #[derive(Deserialize)]
,
parsed into an internal representation.
Fields§
§ident: Ident
The struct or enum name (without generics).
attrs: Container
Attributes on the structure, parsed for Serde.
data: Data<'a>
The contents of the struct or enum.
generics: &'a Generics
Any generics on the struct or enum.
original: &'a DeriveInput
Original input.