From fa1189658a911db852ba974a7382509fb4ffbb7c Mon Sep 17 00:00:00 2001 From: Melonai Date: Mon, 11 Jan 2021 11:38:26 +0100 Subject: Fully split client and server --- src/types.rs | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/types.rs (limited to 'src/types.rs') diff --git a/src/types.rs b/src/types.rs deleted file mode 100644 index 0a4926e..0000000 --- a/src/types.rs +++ /dev/null @@ -1,27 +0,0 @@ -use diesel::PgConnection; -use diesel::r2d2::{ConnectionManager, Pool}; -use crate::schema::links; - -#[derive(Debug, Deserialize)] -pub struct UserData { - pub url: String -} - -#[derive(Debug, Serialize)] -pub struct UserResponse { - pub hash: String -} - -#[derive(Debug, Serialize)] -pub struct ErrorResponse { - pub error: String -} - -#[derive(Queryable, Insertable)] -#[table_name="links"] -pub struct Entry { - pub hash: String, - pub url: String -} - -pub type PoolState = Pool>; \ No newline at end of file -- cgit 1.4.1