From 2222422f8a66daf70ed11f353cea748ae3949dd7 Mon Sep 17 00:00:00 2001 From: Artus Date: Wed, 16 Oct 2019 22:32:58 +0200 Subject: [PATCH] removes ApiResponse from server --- src/server.rs | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/server.rs b/src/server.rs index b08d727..2ead15a 100644 --- a/src/server.rs +++ b/src/server.rs @@ -11,23 +11,6 @@ use std::default; type AppPool = web::Data; -#[derive(Serialize, Deserialize, Debug)] -enum Update { - NoUpdate, - Wealth, - ItemAdded, - ItemRemoved, - ClaimAdded, - ClaimRemoved, -} - -#[derive(Serialize, Deserialize, Debug, Default)] -struct ApiResponse { - value: Option, // The value requested, if any - notify: Option, // A text to notify user, if relevant - updates: Option>, // A list of updates, if any - errors: Option, // A text describing errors, if any -} /// Wraps call to the DbApi and process its result as a async HttpResponse /// /// Provides a convenient way to call the api inside a route definition. Given a connection pool,