all: Set steps to be a single Vec & fix 'ingerdient' typo

This commit is contained in:
traxys 2023-06-25 21:37:28 +02:00
parent b01f08ba2f
commit 0c7e52bd8b
9 changed files with 78 additions and 81 deletions

View file

@ -89,7 +89,7 @@ pub struct CreateRecipeRequest {
pub name: String,
pub rating: u8,
pub ingredients: Vec<(i64, f64)>,
pub steps: Vec<String>,
pub steps: String,
}
#[derive(Serialize, Deserialize, Clone, Debug)]
@ -105,7 +105,7 @@ pub struct ListRecipesResponse {
#[derive(Serialize, Deserialize, Clone, Debug)]
pub struct RecipeInfo {
pub name: String,
pub steps: Vec<String>,
pub steps: String,
pub ingredients: Vec<(i64, IngredientInfo, f64)>,
}