/* * rocie-server * * An enterprise grocery management system - server * * The version of the OpenAPI document: 0.1.0 * Contact: benedikt.peetz@b-peetz.de * Generated by: https://openapi-generator.tech */ use crate::models; use serde::{Deserialize, Serialize}; /// RefinedRecipe : An refined recipe. This is a decoding of a recipe's cooklang description, already processed in a way to be consumed by a client. #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RefinedRecipe { /// The unique id of this refined recipe's original recipe. #[serde(rename = "id")] pub id: models::RecipeId, #[serde(rename = "ingridients")] pub ingridients: Vec, } impl RefinedRecipe { /// An refined recipe. This is a decoding of a recipe's cooklang description, already processed in a way to be consumed by a client. pub fn new(id: models::RecipeId, ingridients: Vec) -> RefinedRecipe { RefinedRecipe { id, ingridients, } } }