1
0
mirror of https://github.com/actix/examples synced 2025-01-22 22:05:57 +01:00
2021-02-26 00:57:58 +00:00

16 lines
309 B
Rust

use serde::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
pub struct Product {
id: Option<i64>,
product_type: Option<String>,
name: Option<String>,
}
#[derive(Deserialize, Serialize)]
pub struct Part {
id: Option<i64>,
part_type: Option<String>,
name: Option<String>,
}