feat: Implement search result view & enable search
Implements a very simple and currently kinda broken-looking search result view.
This commit is contained in:
parent
dae97fdaf5
commit
4132869277
6 changed files with 90 additions and 4 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue