all: Set steps to be a single Vec & fix 'ingerdient' typo
This commit is contained in:
parent
b01f08ba2f
commit
0c7e52bd8b
9 changed files with 78 additions and 81 deletions
|
|
@ -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)>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue