[][src]Struct oration::models::comments::NestedComment

pub struct NestedComment {
    id: i32,
    text: String,
    author: Option<String>,
    hash: String,
    created: DateTime<Utc>,
    children: Vec<NestedComment>,
    votes: i32,
}

Subset of the comments table which is to be nested and sent to the frontend.

Fields

Primary key.

Actual comment.

Commentors author if given.

Commentors indentifier.

Timestamp of creation.

Comment children.

Total number of votes.

Methods

impl NestedComment
[src]

Creates a new nested comment from a PrintedComment and a set of precalculated NestedComment children.

Returns a list of all comments, nested, for a given post denoted via the path variable.

Trait Implementations

impl Debug for NestedComment
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for NestedComment

impl Sync for NestedComment