+pub struct Recipe {\r
+ pub id: i32,\r
+ pub title: String,\r
+ pub estimate_time: Option<i32>, // [min].\r
+ pub difficulty: Option<Difficulty>,\r
+\r
+ //ingredients: Vec<Ingredient>, // For four people.\r
+ pub process: Vec<Group>,\r
+}\r
+\r
+impl Recipe {\r
+ pub fn new(id: i32, title: String) -> Recipe {\r
+ Recipe {\r
+ id,\r
+ title,\r
+ estimate_time: None,\r
+ difficulty: None,\r
+ process: Vec::new(),\r
+ }\r
+ }\r