4 pub description
: Option
<String
>,
5 pub estimate_time
: Option
<i32>, // [min].
6 pub difficulty
: Option
<Difficulty
>,
8 //ingredients: Vec<Ingredient>, // For four people.
9 pub process
: Vec
<Group
>,
13 pub fn new(id
: i32, title
: String
, description
: Option
<String
>) -> Recipe
{
25 pub struct Ingredient
{
26 pub quantity
: Option
<Quantity
>,
36 pub name
: Option
<String
>,
42 pub input
: Vec
<StepInput
>,
43 pub output
: Vec
<IntermediateSubstance
>,
46 pub struct IntermediateSubstance
{
48 pub quantity
: Option
<Quantity
>,
52 Ingredient(Ingredient
),
53 IntermediateSubstance(IntermediateSubstance
),