Skip to content

Commit

Permalink
Merge pull request #91 from mathiazom/feat/add_post_hint
Browse files Browse the repository at this point in the history
Add `post_hint`
  • Loading branch information
beanpuppy authored Sep 19, 2024
2 parents 629bb46 + c23f2a0 commit 5b4e511
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/models/submission/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ pub struct SubmissionData {
/// The reason for the post removal, if you are a moderator **and** this post has been
/// removed.
pub removal_reason: Option<String>,
// TODO: skipped post_hint
/// The hint for the type of content in the post.
/// This field is not present for all submissions, and could be disabled for some subreddits.
/// Text posts do not provide a `post_hint`, check `is_self` instead.
/// Common values include:
/// - "link": external link post
/// - "image": image post
/// - "hosted:video": video post
pub post_hint: Option<String>,
/// This is `true` if this submission is stickied (an 'annoucement' thread)
pub stickied: bool,
// TODO: skipped from
Expand Down

0 comments on commit 5b4e511

Please sign in to comment.