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,15 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Relationship {
pub id: String,
pub status: u8,
}
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct User {
#[serde(rename = "_id")]
pub id: String,
pub username: Option<String>,
pub relations: Option<Vec<Relationship>>,
}