1
0
mirror of https://github.com/actix/examples synced 2025-02-02 17:39:05 +01:00
examples/async_ex2/src/common.rs

17 lines
310 B
Rust
Raw Normal View History

2019-04-09 14:12:07 -04:00
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>,
}