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,