mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-23 05:14:27 +01:00
Make ResponseError code and message pub so that they can be modified
This commit is contained in:
parent
ac5a1e4c4b
commit
10d4a1a9af
@ -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")]
|
||||||
|
Loading…
Reference in New Issue
Block a user