about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-08T14·08+0200
committerVincent Ambo <tazjin@gmail.com>2018-04-08T14·08+0200
commit5604d933e89f9020299f59d927d73f2cd12b4134 (patch)
treed68788bf6b622884cf88db292103102222155de8 /src/models.rs
parentf3f509d4631eb7f968894f1f5445071164b2e515 (diff)
feat(main): Add minimal thread listing example
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
index a7ed8a91df03..e502891305a2 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -8,6 +8,7 @@ pub struct Thread {
     pub posted: DateTime<Utc>,
 }
 
+#[derive(Queryable)]
 pub struct Post {
     pub id: i32,
     pub thread: i32,