building db support with diesel.rs

This commit is contained in:
2019-01-27 21:52:46 +01:00
parent 940927d376
commit fb4d24ef44
14 changed files with 113 additions and 6 deletions

8
cookbook/src/models.rs Normal file
View File

@@ -0,0 +1,8 @@
#[derive(Queryable)]
pub struct Recipe {
pub id: i32,
pub title: String,
pub category: i32,
pub ingredients: String,
pub preparation: String,
}