From 4132869277656437f1f62869a2b1676d4c1c42d7 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sat, 14 Apr 2018 22:06:30 +0200 Subject: feat: Implement search result view & enable search Implements a very simple and currently kinda broken-looking search result view. --- src/models.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/models.rs') 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, -- cgit 1.4.1