stry-common 0.1.3

Shared code for stry crates, from backends to frontends, they all depend on this.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Entities for the blog 'module', for both user and site blog posts.

use crate::models::{
    core::{Comment, Part},
    Existing,
};

#[rustfmt::skip]
#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
#[derive(serde::Deserialize, serde::Serialize)]
pub struct Post {
    /// The parts that make up this blog post.
    pub parts: Vec<Existing<Part>>,

    /// Comment/replies to the main post itself.
    pub comments: Vec<Existing<Comment>>,
}