use crate::db::*; use serde::Serialize; #[derive(Serialize)] pub enum Error { Antispam { timeout: Time }, IllegalContent, Internal, InvalidRequest, } #[derive(Serialize)] pub struct CommentsByTopic { pub comments: Vec, } #[derive(Clone, Debug, Serialize)] pub struct OriginalComment { pub author: String, pub editable: bool, pub last_edit_time: Option