Shopping list (WIP)
This commit is contained in:
parent
ce3821b94e
commit
084be9fb00
16 changed files with 296 additions and 90 deletions
|
|
@ -209,6 +209,20 @@ pub struct ScheduledRecipe {
|
|||
pub date: NaiveDate,
|
||||
}
|
||||
|
||||
/*** Shopping list ***/
|
||||
|
||||
#[derive(Serialize, Deserialize, Clone, Debug)]
|
||||
pub struct ShoppingListItem {
|
||||
pub id: i64,
|
||||
pub name: String,
|
||||
pub quantity_value: Option<f64>,
|
||||
pub quantity_unit: String,
|
||||
pub recipe_id: Option<i64>,
|
||||
pub recipe_title: Option<String>,
|
||||
pub date: Option<NaiveDate>,
|
||||
pub is_checked: bool,
|
||||
}
|
||||
|
||||
/*** Misc ***/
|
||||
|
||||
pub fn to_string<T>(ron: T) -> String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue