This commit is contained in:
Greg Burri 2022-11-26 20:22:45 +01:00
parent 45d4867cb3
commit b6235fb76c
12 changed files with 578 additions and 336 deletions

View file

@ -1,6 +1,7 @@
pub struct Recipe {
pub id: i32,
pub title: String,
pub description: Option<String>,
pub estimate_time: Option<i32>, // [min].
pub difficulty: Option<Difficulty>,
@ -9,10 +10,11 @@ pub struct Recipe {
}
impl Recipe {
pub fn new(id: i32, title: String) -> Recipe {
pub fn new(id: i32, title: String, description: Option<String>) -> Recipe {
Recipe {
id,
title,
description,
estimate_time: None,
difficulty: None,
process: Vec::new(),