about summary refs log tree commit diff
path: root/src/types.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/types.rs')
-rw-r--r--src/types.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/types.rs b/src/types.rs
index d068043..0a4926e 100644
--- a/src/types.rs
+++ b/src/types.rs
@@ -9,7 +9,12 @@ pub struct UserData {
 
 #[derive(Debug, Serialize)]
 pub struct UserResponse {
-    pub hash: String,
+    pub hash: String
+}
+
+#[derive(Debug, Serialize)]
+pub struct ErrorResponse {
+    pub error: String
 }
 
 #[derive(Queryable, Insertable)]