Fix build error

This commit is contained in:
Chris Tsang 2022-03-27 00:24:10 +08:00
parent 86fa15563d
commit c4f0db334d

View File

@ -9,7 +9,7 @@ use serde::{Deserialize, Serialize};
#[sea_orm(table_name = "fruit")]
pub struct Model {
#[sea_orm(primary_key)]
#[serde(skip_deserializing)]
#[cfg_attr(feature = "with-json", serde(skip_deserializing))]
pub id: i32,
pub name: String,
pub cake_id: Option<i32>,