X-Git-Url: http://git.euphorik.ch/?p=recipes.git;a=blobdiff_plain;f=backend%2Fsrc%2Fmodel.rs;fp=backend%2Fsrc%2Fmodel.rs;h=d0f95d2e46c86b994e89432c360fddc202ac32a7;hp=719ed21e7009e3e7bea92339fac3883257961971;hb=642dd8a80ce2e1212b8e30c1edabb32bdb416cfc;hpb=d28e765e39e70ad2ab9a42885c786d5d8ba9ba40 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,