aboutsummaryrefslogtreecommitdiff
path: root/lockchain-http/src/models/mod.rs
diff options
context:
space:
mode:
authorKatharina Fey <kookie@spacekookie.de>2018-07-09 10:43:38 +0200
committerKatharina Fey <kookie@spacekookie.de>2018-07-09 10:43:38 +0200
commit99ccbd7ddc1917dc2c984b046e250bf74e0aa2d3 (patch)
tree6249a2f13c8b7bec195d20a0cf1b4cc264b2f64e /lockchain-http/src/models/mod.rs
parent7bf79304628e5e95b20690f1a12cd9e5aec107bf (diff)
Refactoring the error modules to now contain sub-error types
This isn't ideal yet but good enough for now. Errors can be added via a new variant in lockchain::errors::Error easily
Diffstat (limited to 'lockchain-http/src/models/mod.rs')
-rw-r--r--lockchain-http/src/models/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/lockchain-http/src/models/mod.rs b/lockchain-http/src/models/mod.rs
index a80872c..f83dc35 100644
--- a/lockchain-http/src/models/mod.rs
+++ b/lockchain-http/src/models/mod.rs
@@ -3,12 +3,10 @@
pub mod inputs;
pub mod responses;
-use serde::{de::DeserializeOwned, Serialize};
-use std::error::Error;
-
/// A wrapper model for various API response types
#[derive(Serialize, Deserialize)]
-pub enum Response{
+pub enum Response
+{
/// Indicate general success of an operation
Success,
/// Indicate a failure of some kind