4 pub estimate_time
: Option
<i32>, // [min].
5 pub difficulty
: Option
<Difficulty
>,
7 //ingredients: Vec<Ingredient>, // For four people.
8 pub process
: Vec
<Group
>,
12 pub fn new(id
: i32, title
: String
) -> Recipe
{
23 pub struct Ingredient
{
24 pub quantity
: Option
<Quantity
>,
34 pub name
: Option
<String
>,
40 pub input
: Vec
<StepInput
>,
41 pub output
: Vec
<IntermediateSubstance
>,
44 pub struct IntermediateSubstance
{
46 pub quantity
: Option
<Quantity
>,
50 Ingredient(Ingredient
),
51 IntermediateSubstance(IntermediateSubstance
),