about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T15·30+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T15·30+0200
commit3db069c60d5696efc3d8772e07fec65d876b45e2 (patch)
tree31b6cb389d783104b185b5a0ab907e3e9decbad1 /src/models.rs
parentb83dd99e305f8de13211f14654b7bceb1c6024c1 (diff)
feat(main): Add support for Tera templates
Sets up the structure required to carry Tera templates in the
actix-web state.

The (still very barebones) index renderer has been updated to render a
Tera template.
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/models.rs b/src/models.rs
index e502891305a2..929bd0507e94 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -1,6 +1,6 @@
 use chrono::prelude::{DateTime, Utc};
 
-#[derive(Queryable)]
+#[derive(Queryable, Serialize)]
 pub struct Thread {
     pub id: i32,
     pub title: String,