predawn-macro-core 0.9.0

Core types and functions for macros in predawn
Documentation
1
2
3
4
5
6
7
8
9
10
use from_attr::{FlagOrValue, FromAttr};
use syn::Expr;

#[derive(FromAttr, Default)]
#[attribute(idents = [schema])]
pub struct SchemaAttr {
    pub rename: Option<String>,
    pub flatten: bool,
    pub default: FlagOrValue<Expr>,
}