Sign out
This commit is contained in:
parent
45d4867cb3
commit
b6235fb76c
12 changed files with 578 additions and 336 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue