diff options
-rw-r--r-- | src/lib.rs | 3 | ||||
-rw-r--r-- | src/models.rs | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,6 @@ +#![feature(plugin, custom_derive)] +#![plugin(rocket_codegen)] + #[macro_use] extern crate diesel_codegen; pub mod models; diff --git a/src/models.rs b/src/models.rs index a0152c0..d8aa0aa 100644 --- a/src/models.rs +++ b/src/models.rs @@ -1,4 +1,4 @@ -#[derive(Default, Serialize, Queryable)] +#[derive(Debug, Default, FromForm, Serialize, Queryable)] pub struct Post { pub id: i32, pub title: String, |