use chrono::{DateTime, Utc}; use std::path::Path; enum PostType { Article, Note, } enum TextFormat { Markdown, Plaintext, Html, } pub struct Post { id: i64, created_at: DateTime, updated_at: Option>, post_type: PostType, media: Option>>, content: Option, tags: Vec, } pub trait Content { fn render(&self) -> String; } // impl Post { // // renders as internal html (must sanitize) // fn new(type: PostType, ) -> Post { // } // }