aboutsummaryrefslogtreecommitdiffstats
path: root/src/models/error_response.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models/error_response.rs')
-rw-r--r--src/models/error_response.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/models/error_response.rs b/src/models/error_response.rs
index c321726..49760b3 100644
--- a/src/models/error_response.rs
+++ b/src/models/error_response.rs
@@ -9,18 +9,15 @@
*/
-#[allow(unused_imports)]
-use serde_json::Value;
-
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub struct ErrorResponse {
#[serde(rename = "error")]
- pub error: ::models::ErrorDetail,
+ pub error: crate::models::ErrorDetail,
}
impl ErrorResponse {
- pub fn new(error: ::models::ErrorDetail) -> ErrorResponse {
+ pub fn new(error: crate::models::ErrorDetail) -> ErrorResponse {
ErrorResponse {
error: error,
}