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