pub struct Post {
pub id: String,
pub title: String,
pub author: String,
pub subreddit: String,
pub ups: i64,
pub downs: i64,
pub score: i64,
pub num_comments: i64,
pub url: String,
pub stickied: bool,
pub gilded: i64,
pub comments: Listing<Comment>,
}
Expand description
A struct that represents a submission to reddit
Fields§
§id: String
Id of the post
title: String
Title of the post
Author of the post
subreddit: String
Subreddit the post was made in
ups: i64
Number of upvotes the post has recieved
downs: i64
Number of downvotes the post has recieved
score: i64
Total score of the post (ups - downs)
num_comments: i64
Number of comments on the post
url: String
Url of the post
stickied: bool
Whether the post is stickied
gilded: i64
Amount of times this post has been gilded
comments: Listing<Comment>
The comments on this post