aboutsummaryrefslogtreecommitdiff
path: root/lockchain-http/src/models/responses.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lockchain-http/src/models/responses.rs')
-rw-r--r--lockchain-http/src/models/responses.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/lockchain-http/src/models/responses.rs b/lockchain-http/src/models/responses.rs
index 5230987..ad4224b 100644
--- a/lockchain-http/src/models/responses.rs
+++ b/lockchain-http/src/models/responses.rs
@@ -17,15 +17,16 @@ where
}
/// A simple message that describes an invalid operation
-///
+///
/// `explain()` can return a localised string, that provides
/// more details than the error itself.
-///
+///
/// `LockError` is a generic type provided by `lockchain-core`
/// which is meant to represent any type of error that can
/// occur in the lockchain ecosystem.
#[derive(Serialize, Deserialize)]
-pub struct OperationFailed {
+pub struct OperationFailed
+{
pub explain: String,
pub error: LockError,
}