radars and vehicles
This commit is contained in:
@@ -23,3 +23,24 @@ pub struct CommonDriver {
|
||||
pub name: String,
|
||||
pub address: String,
|
||||
}
|
||||
|
||||
//generate common radar struct
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CommonRadar {
|
||||
pub id: i32,
|
||||
pub category: Option<String>,
|
||||
pub address: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Debug, Clone)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct CommonVehicle {
|
||||
pub model: Option<String>,
|
||||
pub category: String,
|
||||
pub color: Option<String>,
|
||||
pub chasse_num: Option<i32>,
|
||||
pub plate_num: i32,
|
||||
pub vehicle_type: String,
|
||||
pub owner: Option<String>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user