diff --git a/src/flow.rs b/src/flow.rs index 1b420b7..c44134d 100644 --- a/src/flow.rs +++ b/src/flow.rs @@ -4,8 +4,10 @@ use mongod::{assert_reference_of, reference_of, Reference, Validate}; #[derive(Debug, Clone, Serialize, Deserialize, Model, Referencable)] pub struct FlowInfo { + #[serde(default)] pub _id: String, pub name: String, + #[serde(default)] pub depends: Vec, pub next: Option, pub produces: Option>,