Struct orca::data::Post

source ·
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: String

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

Trait Implementations§

source§

impl Debug for Post

Formats the value using the given formatter. Read more
source§

impl Thing for Post

Parses the thing from json Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for Post

§

impl Send for Post

§

impl Sync for Post

§

impl Unpin for Post

§

impl UnwindSafe for Post

Blanket Implementations§

source§

impl<T> Any for Twhere
    T: 'static + ?Sized,

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere
    T: ?Sized,

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere
    T: ?Sized,

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere
    U: From<T>,

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere
    U: Into<T>,

The type returned in the event of a conversion error.
Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere
    U: TryFrom<T>,

The type returned in the event of a conversion error.
Performs the conversion.