From b467f7202f5c0c3970e39ea396a0cec0fd6a36ee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sun, 15 Feb 2026 22:25:39 +0100 Subject: chore(rocie-client): Re-generate the client api --- crates/rocie-client/src/models/product.rs | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'crates/rocie-client/src/models/product.rs') diff --git a/crates/rocie-client/src/models/product.rs b/crates/rocie-client/src/models/product.rs index e2546e0..e5e7da1 100644 --- a/crates/rocie-client/src/models/product.rs +++ b/crates/rocie-client/src/models/product.rs @@ -26,7 +26,7 @@ pub struct Product { /// The name of the product. This should be globally unique, to make searching easier for the user. #[serde(rename = "name")] pub name: String, - /// The parent this product has. This is effectively it's anchor in the product DAG. + /// The parent this product has. This is effectively it's anchor in the product DAG. None means, that it has no parents and as such is in the toplevel. #[serde(rename = "parent", skip_serializing_if = "Option::is_none")] pub parent: Option, /// The property this product is measured in. (This is probably always either Mass, Volume or Quantity). @@ -36,12 +36,7 @@ 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, - id: models::ProductId, - name: String, - unit_property: models::UnitPropertyId, - ) -> Product { + pub fn new(associated_bar_codes: Vec, id: models::ProductId, name: String, unit_property: models::UnitPropertyId) -> Product { Product { associated_bar_codes, description: None, @@ -52,3 +47,4 @@ impl Product { } } } + -- cgit 1.4.1