Struct postmill::CommentInfo

source ·
pub struct CommentInfo {
    pub body: String,
    pub author: String,
    pub forum: String,
    pub date: DateTime<FixedOffset>,
    pub id: u64,
    pub submission_id: u64,
}

Fields

body: String

The HTML body of the comment after it’s parsed by markdown.

author: String

The username of the author of the comment.

forum: String

The name of the forum the comment is posted in.

date: DateTime<FixedOffset>

The date the comment is posted.

id: u64

The comment id.

submission_id: u64

The id of the submission the comment is placed in.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

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