diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 05:41:14 +0100 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-03-19 05:41:14 +0100 |
| commit | ca5c852c5091d7923cc5b1dabf1af5581c459fd1 (patch) | |
| tree | 105a78beb6ca6074d49e1c0cdc066883518d7ea1 /crates/rocie-client/src/models/cooklang_recipe.rs | |
| parent | chore(LICENSES/GPL-3.0-or-later): Add (diff) | |
| download | server-ca5c852c5091d7923cc5b1dabf1af5581c459fd1.zip | |
chore(rocie-{server,client}): Format code
Diffstat (limited to 'crates/rocie-client/src/models/cooklang_recipe.rs')
| -rw-r--r-- | crates/rocie-client/src/models/cooklang_recipe.rs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/rocie-client/src/models/cooklang_recipe.rs b/crates/rocie-client/src/models/cooklang_recipe.rs index f517566..5127ff1 100644 --- a/crates/rocie-client/src/models/cooklang_recipe.rs +++ b/crates/rocie-client/src/models/cooklang_recipe.rs @@ -43,7 +43,13 @@ pub struct CooklangRecipe { impl CooklangRecipe { /// A complete recipe The recipes do not have a name. You give it externally or maybe use some metadata key. The recipe returned from parsing is a [`ScalableRecipe`]. The difference between [`ScalableRecipe`] and [`ScaledRecipe`] is in the values of the quantities of ingredients, cookware and timers. The parser returns [`ScalableValue`]s and after scaling, these are converted to regular [`Value`]s. - pub fn new(cookware: Vec<models::Cookware>, ingredients: Vec<models::Ingredient>, metadata: models::Metadata, sections: Vec<models::Section>, timers: Vec<models::Timer>) -> CooklangRecipe { + pub fn new( + cookware: Vec<models::Cookware>, + ingredients: Vec<models::Ingredient>, + metadata: models::Metadata, + sections: Vec<models::Section>, + timers: Vec<models::Timer>, + ) -> CooklangRecipe { CooklangRecipe { cookware, ingredients, @@ -53,4 +59,3 @@ impl CooklangRecipe { } } } - |
