From bcc72e4fc1bf9a7c01fbd00f0a7593d03b01d2cc Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 9 Sep 2019 08:12:17 +0200 Subject: [PATCH] Fields in Error related structs are now accessible Fixes #239 --- src/rust/api/cmn.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/rust/api/cmn.rs b/src/rust/api/cmn.rs index b157cda577..253452652d 100644 --- a/src/rust/api/cmn.rs +++ b/src/rust/api/cmn.rs @@ -70,24 +70,24 @@ pub struct JsonServerError { /// The latter happen if the sent parameters or request structures are unsound #[derive(Deserialize, Serialize, Debug)] pub struct ErrorResponse { - error: ServerError, + pub error: ServerError, } #[derive(Deserialize, Serialize, Debug)] pub struct ServerError { - errors: Vec, - code: u16, - message: String, + pub errors: Vec, + pub code: u16, + pub message: String, } #[derive(Deserialize, Serialize, Debug)] pub struct ServerMessage { - domain: String, - reason: String, - message: String, + pub domain: String, + pub reason: String, + pub message: String, #[serde(rename="locationType")] - location_type: Option, - location: Option + pub location_type: Option, + pub location: Option } #[derive(Copy, Clone)]