diff --git a/api/src/lib.rs b/api/src/lib.rs index bd1dd03..b0bd6c1 100644 --- a/api/src/lib.rs +++ b/api/src/lib.rs @@ -99,12 +99,13 @@ pub struct CreateRecipeResponse { #[derive(Serialize, Deserialize, Clone, Debug)] pub struct ListRecipesResponse { - pub recipes: Vec<(i64, String)>, + pub recipes: Vec<(i64, String, u8)>, } #[derive(Serialize, Deserialize, Clone, Debug)] pub struct RecipeInfo { pub name: String, + pub rating: u8, pub steps: String, pub ingredients: Vec<(i64, IngredientInfo, f64)>, } diff --git a/app/src/recipe.rs b/app/src/recipe.rs index 008652a..b6e9478 100644 --- a/app/src/recipe.rs +++ b/app/src/recipe.rs @@ -50,7 +50,7 @@ fn RecipeListInner(props: &RecipeListProps) -> HtmlResult { Ok(l) => html! {