diff options
Diffstat (limited to 'crates/rocie-client/src/models/product.rs')
| -rw-r--r-- | crates/rocie-client/src/models/product.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/crates/rocie-client/src/models/product.rs b/crates/rocie-client/src/models/product.rs index 2ab9445..e2546e0 100644 --- a/crates/rocie-client/src/models/product.rs +++ b/crates/rocie-client/src/models/product.rs @@ -36,7 +36,12 @@ pub struct Product { impl Product { /// The base of rocie. Products can be bought and consumed and represent, what you actually have in storage. Not every product is bought, as some can also be obtained by cooking a recipe. - pub fn new(associated_bar_codes: Vec<models::Barcode>, id: models::ProductId, name: String, unit_property: models::UnitPropertyId) -> Product { + pub fn new( + associated_bar_codes: Vec<models::Barcode>, + id: models::ProductId, + name: String, + unit_property: models::UnitPropertyId, + ) -> Product { Product { associated_bar_codes, description: None, @@ -47,4 +52,3 @@ impl Product { } } } - |
