Make ResponseError code and message pub so that they can be modified

This commit is contained in:
Louis Dureuil 2023-02-21 17:24:23 +01:00
parent ac5a1e4c4b
commit 10d4a1a9af
No known key found for this signature in database

View File

@ -11,8 +11,8 @@ use serde::{Deserialize, Serialize};
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct ResponseError { pub struct ResponseError {
#[serde(skip)] #[serde(skip)]
code: StatusCode, pub code: StatusCode,
message: String, pub message: String,
#[serde(rename = "code")] #[serde(rename = "code")]
error_code: String, error_code: String,
#[serde(rename = "type")] #[serde(rename = "type")]