TyPe MiSmAtCh pGdAtE eXpEcTeD StRiNg

This commit is contained in:
LinlyBoi
2022-12-23 19:35:08 +00:00
parent 99ec37991e
commit bcf3ec0d8c
6 changed files with 42 additions and 6 deletions

View File

@@ -15,3 +15,13 @@ pub struct CommonAdmin {
pub name: String,
pub address: String,
}
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
#[serde(rename_all = "camelCase")]
pub struct CommonDriver {
pub id: i32,
pub name: String,
pub address: String,
pub reg_date: i32,
pub birthdate: i32,
}