Add Sub Member Count & Fix Icons
This commit is contained in:
12
src/utils.rs
12
src/utils.rs
@ -21,7 +21,7 @@ pub struct Post {
|
||||
pub score: String,
|
||||
pub media: String,
|
||||
pub time: String,
|
||||
pub flair: Flair,
|
||||
pub flair: Flair
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
@ -30,7 +30,7 @@ pub struct Comment {
|
||||
pub body: String,
|
||||
pub author: String,
|
||||
pub score: String,
|
||||
pub time: String,
|
||||
pub time: String
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
@ -40,7 +40,7 @@ pub struct User {
|
||||
pub icon: String,
|
||||
pub karma: i64,
|
||||
pub banner: String,
|
||||
pub description: String,
|
||||
pub description: String
|
||||
}
|
||||
|
||||
#[allow(dead_code)]
|
||||
@ -50,6 +50,8 @@ pub struct Subreddit {
|
||||
pub title: String,
|
||||
pub description: String,
|
||||
pub icon: String,
|
||||
pub members: String,
|
||||
pub active: String
|
||||
}
|
||||
|
||||
// Parser for query params, used in sorting (eg. /r/rust/?sort=hot)
|
||||
@ -57,14 +59,14 @@ pub struct Subreddit {
|
||||
pub struct Params {
|
||||
pub sort: Option<String>,
|
||||
pub after: Option<String>,
|
||||
pub before: Option<String>,
|
||||
pub before: Option<String>
|
||||
}
|
||||
|
||||
// Error template
|
||||
#[derive(askama::Template)]
|
||||
#[template(path = "error.html", escape = "none")]
|
||||
pub struct ErrorTemplate {
|
||||
pub message: String,
|
||||
pub message: String
|
||||
}
|
||||
|
||||
//
|
||||
|
Reference in New Issue
Block a user