Move all entities to their own folder.

This commit is contained in:
Paul Makles
2020-12-28 15:21:11 +00:00
parent b33f19a3c2
commit 6253a91276
13 changed files with 135 additions and 1352 deletions

View File

@@ -0,0 +1,22 @@
use mongodb::bson::DateTime;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct PreviousEntry {
pub content: String,
pub time: DateTime,
}
#[derive(Serialize, Deserialize, Debug)]
pub struct Message {
#[serde(rename = "_id")]
pub id: String,
pub nonce: Option<String>,
pub channel: String,
pub author: String,
pub content: String,
pub edited: Option<DateTime>,
pub previous_content: Vec<PreviousEntry>,
}