app,server: Allow to display a recipe
This commit is contained in:
parent
f3788e31a9
commit
1a0ffb2d89
5 changed files with 159 additions and 4 deletions
|
|
@ -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)>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue