aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs
index bebb321..a0152c0 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -1,4 +1,4 @@
-#[derive(Serialize, Queryable)]
+#[derive(Default, Serialize, Queryable)]
pub struct Post {
pub id: i32,
pub title: String,