sabi_derive 0.2.0

Derive macros for replication features in sabi
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::replicate::attr;

pub struct Container<'a> {
    /// The struct or enum name (without generics).
    pub ident: syn::Ident,
    /// Attributes on the structure, parsed for Serde.
    pub attrs: attr::Container,
    /// Any generics on the struct or enum.
    pub generics: &'a syn::Generics,
    /// Original input.
    pub original: &'a syn::DeriveInput,
}