X-Git-Url: http://git.euphorik.ch/index.cgi?a=blobdiff_plain;f=backend%2Fsrc%2Fmodel.rs;h=d0f95d2e46c86b994e89432c360fddc202ac32a7;hb=0a1631e66c861de2799cd98fc93686ff121c9fce;hp=4984cdd6844d42625a7ad45a2c105ca36471d355;hpb=cdb883c3c4ccbb82774ecfbfad059f3392e75432;p=recipes.git diff --git a/backend/src/model.rs b/backend/src/model.rs index 4984cdd..d0f95d2 100644 --- a/backend/src/model.rs +++ b/backend/src/model.rs @@ -1,6 +1,7 @@ pub struct Recipe { - pub id: i32, + pub id: i64, pub title: String, + pub description: Option, pub estimate_time: Option, // [min]. pub difficulty: Option, @@ -9,10 +10,11 @@ pub struct Recipe { } impl Recipe { - pub fn new(id: i32, title: String) -> Recipe { + pub fn new(id: i64, title: String, description: Option) -> Recipe { Recipe { id, title, + description, estimate_time: None, difficulty: None, process: Vec::new(),