diff --git a/pg-worm-derive/src/lib.rs b/pg-worm-derive/src/lib.rs index 65d37f0..fae6501 100644 --- a/pg-worm-derive/src/lib.rs +++ b/pg-worm-derive/src/lib.rs @@ -6,17 +6,6 @@ use syn::parse_macro_input; use parse::ModelInput; -/// Automatically implement `Model` for your struct. -/// -/// ## Attributes -/// * `table` - for structs: -/// - `table_name: String`: optional. Overwrites the table name -/// * `column` - for struct fields: -/// - `dtype: String`: optional. Overwrites the postgres datatype -/// - `unique: bool`: optional, default: `false`. Enables the `unqiue` constraint. -/// - `auto: bool`: optional, default: `false`. This autogenerated the -/// values. -/// - `column_name: String`: optional. Overwrites the column name. #[proc_macro_derive(Model, attributes(table, column))] pub fn derive(input: TokenStream) -> TokenStream { let input = ModelInput::from_derive_input(&parse_macro_input!(input)).unwrap();