Skip to content

Commit

Permalink
fix: incorrect Message structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Z3rio committed Dec 5, 2023
1 parent 1bf8579 commit 892dbca
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion src/models/misc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,24 @@ pub struct Data<T> {
pub data: T
}

#[derive(Deserialize, Serialize, Clone)]
pub struct FieldOfDetail {

}

#[derive(Deserialize, Serialize, Clone)]
pub struct Meta {

}

#[derive(Deserialize, Serialize, Clone)]
pub struct Message {
pub message: String
pub status: Option<i32>,
pub r#type: Option<String>,
pub title: Option<String>,
pub detail: Option<String>,
pub error_code: Option<String>,
pub field_of_details: Option<Vec<FieldOfDetail>>,
pub meta: Option<Vec<Meta>>,
pub message: Option<String>
}

0 comments on commit 892dbca

Please sign in to comment.