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")]
pub struct ResponseError {
#[serde(skip)]
code: StatusCode,
message: String,
pub code: StatusCode,
pub message: String,
#[serde(rename = "code")]
error_code: String,
#[serde(rename = "type")]