1
0
mirror of https://github.com/actix/examples synced 2025-02-02 09:39:03 +01:00
examples/async_ex2/src/common.rs
2019-04-14 10:34:41 -07: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>,
}