app,server: Allow to display a recipe

This commit is contained in:
traxys 2023-06-25 15:13:15 +02:00
parent f3788e31a9
commit 1a0ffb2d89
5 changed files with 159 additions and 4 deletions

View file

@ -101,3 +101,10 @@ pub struct CreateRecipeResponse {
pub struct ListRecipesResponse {
pub recipes: Vec<(i64, String)>,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct RecipeInfo {
pub name: String,
pub steps: Vec<String>,
pub ingredients: Vec<(i64, IngredientInfo, f64)>,
}