projects
/
recipes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sign out
[recipes.git]
/
backend
/
src
/
model.rs
diff --git
a/backend/src/model.rs
b/backend/src/model.rs
index
4984cdd
..
719ed21
100644
(file)
--- a/
backend/src/model.rs
+++ b/
backend/src/model.rs
@@
-1,6
+1,7
@@
pub struct Recipe {
\r
pub id: i32,
\r
pub title: String,
\r
pub struct Recipe {
\r
pub id: i32,
\r
pub title: String,
\r
+ pub description: Option<String>,
\r
pub estimate_time: Option<i32>, // [min].
\r
pub difficulty: Option<Difficulty>,
\r
\r
pub estimate_time: Option<i32>, // [min].
\r
pub difficulty: Option<Difficulty>,
\r
\r
@@
-9,10
+10,11
@@
pub struct Recipe {
}
\r
\r
impl Recipe {
\r
}
\r
\r
impl Recipe {
\r
- pub fn new(id: i32, title: String) -> Recipe {
\r
+ pub fn new(id: i32, title: String
, description: Option<String>
) -> Recipe {
\r
Recipe {
\r
id,
\r
title,
\r
Recipe {
\r
id,
\r
title,
\r
+ description,
\r
estimate_time: None,
\r
difficulty: None,
\r
process: Vec::new(),
\r
estimate_time: None,
\r
difficulty: None,
\r
process: Vec::new(),
\r