app,server: Display rating in recipe

This commit is contained in:
traxys 2023-06-26 12:06:08 +02:00
parent 1ea5c8aafa
commit 5ef000dec0
3 changed files with 28 additions and 8 deletions

View file

@ -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)>,
}