about summary refs log tree commit diff
path: root/server/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/types.rs')
-rw-r--r--server/src/types.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/server/src/types.rs b/server/src/types.rs
deleted file mode 100644
index 0a4926e..0000000
--- a/server/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<ConnectionManager<PgConnection>>;
\ No newline at end of file