summary refs log tree commit diff
path: root/src/types.rs
diff options
context:
space:
mode:
authorMelonai <einebeere@gmail.com>2020-05-20 21:16:34 +0200
committerGitHub <noreply@github.com>2020-05-20 21:16:34 +0200
commite9f542ddc8b8230418b1e6fc1656677453ea5a10 (patch)
treeefe84fba111c308370a89fba61dd9e8548a01085 /src/types.rs
parenta00a8a867cae381982c7b8b77f07836ab4a504ed (diff)
parent58abd266b0b5ec37c5d7beea37abc2babd7d504a (diff)
downloadshorest-0.2.0.tar.zst
shorest-0.2.0.zip
Merge pull request #1 from Melonai/react-port 0.2.0
React port
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)]