diff options
Diffstat (limited to 'src/models.rs')
-rw-r--r-- | src/models.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/models.rs b/src/models.rs index 159a85469aeb..9d3405e1540f 100644 --- a/src/models.rs +++ b/src/models.rs @@ -24,6 +24,7 @@ pub struct Thread { pub posted: DateTime<Utc>, pub author_name: String, pub author_email: String, + pub sticky: bool, } /// This struct is used as the query type for the thread index view, @@ -33,9 +34,12 @@ pub struct Thread { pub struct ThreadIndex { pub thread_id: i32, pub title: String, - pub author_name: String, - pub posted: DateTime<Utc>, + pub thread_author: String, + pub created: DateTime<Utc>, + pub sticky: bool, pub post_id: i32, + pub post_author: String, + pub posted: DateTime<Utc>, } #[derive(Identifiable, Queryable, Serialize, Associations)] |