about summary refs log tree commit diff
path: root/src/models.rs
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2018-04-14T20·06+0200
committerVincent Ambo <github@tazj.in>2018-04-14T20·21+0200
commit4132869277656437f1f62869a2b1676d4c1c42d7 (patch)
tree6ee6a8302e4712bc8aca47e8c021063ad338b0bf /src/models.rs
parentdae97fdaf5a9541895d9719f1f58902cca846e2b (diff)
feat: Implement search result view & enable search
Implements a very simple and currently kinda broken-looking search
result view.
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 927a78513669..dfadd53fd34f 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -74,7 +74,7 @@ pub struct NewPost {
 /// This struct models the response of a full-text search query. It
 /// does not use a table/schema definition struct like the other
 /// tables, as no table of this type actually exists.
-#[derive(QueryableByName, Debug)]
+#[derive(QueryableByName, Debug, Serialize)]
 pub struct SearchResult {
     #[sql_type = "Integer"]
     pub post_id: i32,