mirror of
https://github.com/actix/examples
synced 2025-02-02 17:39:05 +01:00
17 lines
310 B
Rust
17 lines
310 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>,
|
||
|
}
|