stry_common/models/blog.rs
1//! Entities for the blog 'module', for both user and site blog posts.
2
3use crate::models::{
4 core::{Comment, Part},
5 Existing,
6};
7
8#[rustfmt::skip]
9#[derive(Clone, Debug, Hash, PartialEq, Eq, PartialOrd, Ord)]
10#[derive(serde::Deserialize, serde::Serialize)]
11pub struct Post {
12 /// The parts that make up this blog post.
13 pub parts: Vec<Existing<Part>>,
14
15 /// Comment/replies to the main post itself.
16 pub comments: Vec<Existing<Comment>>,
17}