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 | |
| 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')
149 files changed, 2016 insertions, 1475 deletions
diff --git a/crates/rocie-client/README.md b/crates/rocie-client/README.md index 6437453..d020b94 100644 --- a/crates/rocie-client/README.md +++ b/crates/rocie-client/README.md @@ -14,10 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. An enterprise grocery management system - server - ## Overview -This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. +This API client was generated by the +[OpenAPI Generator](https://openapi-generator.tech) project. By using the +[openapi-spec](https://openapis.org) from a remote server, you can easily +generate an API client. - API version: 0.1.0 - Package version: 0.1.0 @@ -26,7 +28,8 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat ## Installation -Put the package under your project folder in a directory named `rocie-client` and add the following to `Cargo.toml` under `[dependencies]`: +Put the package under your project folder in a directory named `rocie-client` +and add the following to `Cargo.toml` under `[dependencies]`: ``` rocie-client = { path = "./rocie-client" } @@ -34,111 +37,109 @@ rocie-client = { path = "./rocie-client" } ## Documentation for API Endpoints -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*ApiGetAuthInventoryApi* | [**amount_by_id**](docs/ApiGetAuthInventoryApi.md#amount_by_id) | **GET** /inventory/{id} | Get the amount of an product -*ApiGetAuthProductApi* | [**product_by_id**](docs/ApiGetAuthProductApi.md#product_by_id) | **GET** /product/by-id/{id} | Get Product by id -*ApiGetAuthProductApi* | [**product_by_name**](docs/ApiGetAuthProductApi.md#product_by_name) | **GET** /product/by-name/{name} | Get Product by name -*ApiGetAuthProductApi* | [**product_suggestion_by_name**](docs/ApiGetAuthProductApi.md#product_suggestion_by_name) | **GET** /product/by-part-name/{name} | Get Product suggestion by name -*ApiGetAuthProductApi* | [**products_by_product_parent_id_direct**](docs/ApiGetAuthProductApi.md#products_by_product_parent_id_direct) | **GET** /product/by-product-parent-id-direct/{id} | Get Products by it's product parent id -*ApiGetAuthProductApi* | [**products_by_product_parent_id_indirect**](docs/ApiGetAuthProductApi.md#products_by_product_parent_id_indirect) | **GET** /product/by-product-parent-id-indirect/{id} | Get Products by it's product parent id -*ApiGetAuthProductApi* | [**products_in_storage**](docs/ApiGetAuthProductApi.md#products_in_storage) | **GET** /products_in_storage/ | Return all products, which non-null amount in storage -*ApiGetAuthProductApi* | [**products_registered**](docs/ApiGetAuthProductApi.md#products_registered) | **GET** /products_registered/ | Return all registered products -*ApiGetAuthProductApi* | [**products_without_product_parent**](docs/ApiGetAuthProductApi.md#products_without_product_parent) | **GET** /product/without-product-parent | Get Products by it's absents of a product parent -*ApiGetAuthProductParentApi* | [**product_parents**](docs/ApiGetAuthProductParentApi.md#product_parents) | **GET** /product_parents/ | Return all registered product parents -*ApiGetAuthProductParentApi* | [**product_parents_toplevel**](docs/ApiGetAuthProductParentApi.md#product_parents_toplevel) | **GET** /product_parents_toplevel/ | Return all registered product parents, that have no parents themselves -*ApiGetAuthProductParentApi* | [**product_parents_under**](docs/ApiGetAuthProductParentApi.md#product_parents_under) | **GET** /product_parents_under/{id} | Return all parents, that have this parent as parent -*ApiGetAuthRecipeApi* | [**recipe_by_id**](docs/ApiGetAuthRecipeApi.md#recipe_by_id) | **GET** /recipe/by-id/{id} | Get an recipe by it's id. -*ApiGetAuthRecipeApi* | [**recipe_by_name**](docs/ApiGetAuthRecipeApi.md#recipe_by_name) | **GET** /recipe/by-name/{name} | Get an recipe by it's name. -*ApiGetAuthRecipeApi* | [**recipes**](docs/ApiGetAuthRecipeApi.md#recipes) | **GET** /recipe/all | Get all added recipes -*ApiGetAuthRecipeApi* | [**recipes_by_recipe_parent_id_direct**](docs/ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_direct) | **GET** /recipe/by-recipe-parent-id-direct/{id} | Get Recipes by it's recipe parent id -*ApiGetAuthRecipeApi* | [**recipes_by_recipe_parent_id_indirect**](docs/ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_indirect) | **GET** /recipe/by-recipe-parent-id-indirect/{id} | Get Recipes by it's recipe parent id -*ApiGetAuthRecipeApi* | [**recipes_without_recipe_parent**](docs/ApiGetAuthRecipeApi.md#recipes_without_recipe_parent) | **GET** /recipe/without-recipe-parent | Get Recipes by it's absents of a recipe parent -*ApiGetAuthRecipeParentApi* | [**recipe_parents**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents) | **GET** /recipe_parents/ | Return all registered recipe parents -*ApiGetAuthRecipeParentApi* | [**recipe_parents_toplevel**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents_toplevel) | **GET** /recipe_parents_toplevel/ | Return all registered recipe parents, that have no parents themselves -*ApiGetAuthRecipeParentApi* | [**recipe_parents_under**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents_under) | **GET** /recipe_parents_under/{id} | Return all parents, that have this parent as parent -*ApiGetAuthUnitApi* | [**unit_by_id**](docs/ApiGetAuthUnitApi.md#unit_by_id) | **GET** /unit/{id} | Get Unit by id -*ApiGetAuthUnitApi* | [**units**](docs/ApiGetAuthUnitApi.md#units) | **GET** /units/ | Return all registered units -*ApiGetAuthUnitApi* | [**units_by_property_id**](docs/ApiGetAuthUnitApi.md#units_by_property_id) | **GET** /units-by-property/{id} | Return all registered units for a specific unit property -*ApiGetAuthUnitPropertyApi* | [**unit_properties**](docs/ApiGetAuthUnitPropertyApi.md#unit_properties) | **GET** /unit-properties/ | Return all registered unit properties -*ApiGetAuthUnitPropertyApi* | [**unit_property_by_id**](docs/ApiGetAuthUnitPropertyApi.md#unit_property_by_id) | **GET** /unit-property/{id} | Get Unit property by id -*ApiGetAuthUserApi* | [**user_by_id**](docs/ApiGetAuthUserApi.md#user_by_id) | **GET** /user/{id} | Get an specific user by id. -*ApiGetAuthUserApi* | [**users**](docs/ApiGetAuthUserApi.md#users) | **GET** /users | Get all registered users. -*ApiGetNoAuthStateApi* | [**can_be_provisioned**](docs/ApiGetNoAuthStateApi.md#can_be_provisioned) | **GET** /can-be-provisioned | Check if the server can be provisioned -*ApiGetNoAuthStateApi* | [**is_logged_in**](docs/ApiGetNoAuthStateApi.md#is_logged_in) | **GET** /is-logged-in | Check if you are logged in -*ApiSetAuthBarcodeApi* | [**buy_barcode**](docs/ApiSetAuthBarcodeApi.md#buy_barcode) | **POST** /barcode/{barcode_id}/buy/{times} | Buy an barcode -*ApiSetAuthBarcodeApi* | [**consume_barcode**](docs/ApiSetAuthBarcodeApi.md#consume_barcode) | **POST** /barcode/{id}/consume | Consume an barcode -*ApiSetAuthProductApi* | [**associate_barcode**](docs/ApiSetAuthProductApi.md#associate_barcode) | **POST** /product/{id}/associate | Associate a barcode with a product -*ApiSetAuthProductApi* | [**register_product**](docs/ApiSetAuthProductApi.md#register_product) | **POST** /product/new | Register a product -*ApiSetAuthProductParentApi* | [**register_product_parent**](docs/ApiSetAuthProductParentApi.md#register_product_parent) | **POST** /product_parent/new | Register a product parent -*ApiSetAuthRecipeApi* | [**add_recipe**](docs/ApiSetAuthRecipeApi.md#add_recipe) | **POST** /recipe/new | Register a product parent -*ApiSetAuthRecipeParentApi* | [**register_recipe_parent**](docs/ApiSetAuthRecipeParentApi.md#register_recipe_parent) | **POST** /recipe_parent/new | Register a product parent -*ApiSetAuthUnitApi* | [**register_unit**](docs/ApiSetAuthUnitApi.md#register_unit) | **POST** /unit/new | Register an Unit -*ApiSetAuthUnitPropertyApi* | [**register_unit_property**](docs/ApiSetAuthUnitPropertyApi.md#register_unit_property) | **POST** /unit-property/new | Register an Unit Property -*ApiSetAuthUserApi* | [**register_user**](docs/ApiSetAuthUserApi.md#register_user) | **POST** /user/new | Register an new User -*ApiSetNoAuthUserApi* | [**login**](docs/ApiSetNoAuthUserApi.md#login) | **POST** /login | Log in as a specific user -*ApiSetNoAuthUserApi* | [**logout**](docs/ApiSetNoAuthUserApi.md#logout) | **POST** /logout | Log the current user out -*ApiSetNoAuthUserApi* | [**provision**](docs/ApiSetNoAuthUserApi.md#provision) | **POST** /provision | Provision this instance. - +All URIs are relative to _http://localhost_ + +| Class | Method | HTTP request | Description | +| ---------------------------- | ----------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- | ---------------------------------------------------------------------- | +| _ApiGetAuthInventoryApi_ | [**amount_by_id**](docs/ApiGetAuthInventoryApi.md#amount_by_id) | **GET** /inventory/{id} | Get the amount of an product | +| _ApiGetAuthProductApi_ | [**product_by_id**](docs/ApiGetAuthProductApi.md#product_by_id) | **GET** /product/by-id/{id} | Get Product by id | +| _ApiGetAuthProductApi_ | [**product_by_name**](docs/ApiGetAuthProductApi.md#product_by_name) | **GET** /product/by-name/{name} | Get Product by name | +| _ApiGetAuthProductApi_ | [**product_suggestion_by_name**](docs/ApiGetAuthProductApi.md#product_suggestion_by_name) | **GET** /product/by-part-name/{name} | Get Product suggestion by name | +| _ApiGetAuthProductApi_ | [**products_by_product_parent_id_direct**](docs/ApiGetAuthProductApi.md#products_by_product_parent_id_direct) | **GET** /product/by-product-parent-id-direct/{id} | Get Products by it's product parent id | +| _ApiGetAuthProductApi_ | [**products_by_product_parent_id_indirect**](docs/ApiGetAuthProductApi.md#products_by_product_parent_id_indirect) | **GET** /product/by-product-parent-id-indirect/{id} | Get Products by it's product parent id | +| _ApiGetAuthProductApi_ | [**products_in_storage**](docs/ApiGetAuthProductApi.md#products_in_storage) | **GET** /products_in_storage/ | Return all products, which non-null amount in storage | +| _ApiGetAuthProductApi_ | [**products_registered**](docs/ApiGetAuthProductApi.md#products_registered) | **GET** /products_registered/ | Return all registered products | +| _ApiGetAuthProductApi_ | [**products_without_product_parent**](docs/ApiGetAuthProductApi.md#products_without_product_parent) | **GET** /product/without-product-parent | Get Products by it's absents of a product parent | +| _ApiGetAuthProductParentApi_ | [**product_parents**](docs/ApiGetAuthProductParentApi.md#product_parents) | **GET** /product_parents/ | Return all registered product parents | +| _ApiGetAuthProductParentApi_ | [**product_parents_toplevel**](docs/ApiGetAuthProductParentApi.md#product_parents_toplevel) | **GET** /product_parents_toplevel/ | Return all registered product parents, that have no parents themselves | +| _ApiGetAuthProductParentApi_ | [**product_parents_under**](docs/ApiGetAuthProductParentApi.md#product_parents_under) | **GET** /product_parents_under/{id} | Return all parents, that have this parent as parent | +| _ApiGetAuthRecipeApi_ | [**recipe_by_id**](docs/ApiGetAuthRecipeApi.md#recipe_by_id) | **GET** /recipe/by-id/{id} | Get an recipe by it's id. | +| _ApiGetAuthRecipeApi_ | [**recipe_by_name**](docs/ApiGetAuthRecipeApi.md#recipe_by_name) | **GET** /recipe/by-name/{name} | Get an recipe by it's name. | +| _ApiGetAuthRecipeApi_ | [**recipes**](docs/ApiGetAuthRecipeApi.md#recipes) | **GET** /recipe/all | Get all added recipes | +| _ApiGetAuthRecipeApi_ | [**recipes_by_recipe_parent_id_direct**](docs/ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_direct) | **GET** /recipe/by-recipe-parent-id-direct/{id} | Get Recipes by it's recipe parent id | +| _ApiGetAuthRecipeApi_ | [**recipes_by_recipe_parent_id_indirect**](docs/ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_indirect) | **GET** /recipe/by-recipe-parent-id-indirect/{id} | Get Recipes by it's recipe parent id | +| _ApiGetAuthRecipeApi_ | [**recipes_without_recipe_parent**](docs/ApiGetAuthRecipeApi.md#recipes_without_recipe_parent) | **GET** /recipe/without-recipe-parent | Get Recipes by it's absents of a recipe parent | +| _ApiGetAuthRecipeParentApi_ | [**recipe_parents**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents) | **GET** /recipe_parents/ | Return all registered recipe parents | +| _ApiGetAuthRecipeParentApi_ | [**recipe_parents_toplevel**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents_toplevel) | **GET** /recipe_parents_toplevel/ | Return all registered recipe parents, that have no parents themselves | +| _ApiGetAuthRecipeParentApi_ | [**recipe_parents_under**](docs/ApiGetAuthRecipeParentApi.md#recipe_parents_under) | **GET** /recipe_parents_under/{id} | Return all parents, that have this parent as parent | +| _ApiGetAuthUnitApi_ | [**unit_by_id**](docs/ApiGetAuthUnitApi.md#unit_by_id) | **GET** /unit/{id} | Get Unit by id | +| _ApiGetAuthUnitApi_ | [**units**](docs/ApiGetAuthUnitApi.md#units) | **GET** /units/ | Return all registered units | +| _ApiGetAuthUnitApi_ | [**units_by_property_id**](docs/ApiGetAuthUnitApi.md#units_by_property_id) | **GET** /units-by-property/{id} | Return all registered units for a specific unit property | +| _ApiGetAuthUnitPropertyApi_ | [**unit_properties**](docs/ApiGetAuthUnitPropertyApi.md#unit_properties) | **GET** /unit-properties/ | Return all registered unit properties | +| _ApiGetAuthUnitPropertyApi_ | [**unit_property_by_id**](docs/ApiGetAuthUnitPropertyApi.md#unit_property_by_id) | **GET** /unit-property/{id} | Get Unit property by id | +| _ApiGetAuthUserApi_ | [**user_by_id**](docs/ApiGetAuthUserApi.md#user_by_id) | **GET** /user/{id} | Get an specific user by id. | +| _ApiGetAuthUserApi_ | [**users**](docs/ApiGetAuthUserApi.md#users) | **GET** /users | Get all registered users. | +| _ApiGetNoAuthStateApi_ | [**can_be_provisioned**](docs/ApiGetNoAuthStateApi.md#can_be_provisioned) | **GET** /can-be-provisioned | Check if the server can be provisioned | +| _ApiGetNoAuthStateApi_ | [**is_logged_in**](docs/ApiGetNoAuthStateApi.md#is_logged_in) | **GET** /is-logged-in | Check if you are logged in | +| _ApiSetAuthBarcodeApi_ | [**buy_barcode**](docs/ApiSetAuthBarcodeApi.md#buy_barcode) | **POST** /barcode/{barcode_id}/buy/{times} | Buy an barcode | +| _ApiSetAuthBarcodeApi_ | [**consume_barcode**](docs/ApiSetAuthBarcodeApi.md#consume_barcode) | **POST** /barcode/{id}/consume | Consume an barcode | +| _ApiSetAuthProductApi_ | [**associate_barcode**](docs/ApiSetAuthProductApi.md#associate_barcode) | **POST** /product/{id}/associate | Associate a barcode with a product | +| _ApiSetAuthProductApi_ | [**register_product**](docs/ApiSetAuthProductApi.md#register_product) | **POST** /product/new | Register a product | +| _ApiSetAuthProductParentApi_ | [**register_product_parent**](docs/ApiSetAuthProductParentApi.md#register_product_parent) | **POST** /product_parent/new | Register a product parent | +| _ApiSetAuthRecipeApi_ | [**add_recipe**](docs/ApiSetAuthRecipeApi.md#add_recipe) | **POST** /recipe/new | Register a product parent | +| _ApiSetAuthRecipeParentApi_ | [**register_recipe_parent**](docs/ApiSetAuthRecipeParentApi.md#register_recipe_parent) | **POST** /recipe_parent/new | Register a product parent | +| _ApiSetAuthUnitApi_ | [**register_unit**](docs/ApiSetAuthUnitApi.md#register_unit) | **POST** /unit/new | Register an Unit | +| _ApiSetAuthUnitPropertyApi_ | [**register_unit_property**](docs/ApiSetAuthUnitPropertyApi.md#register_unit_property) | **POST** /unit-property/new | Register an Unit Property | +| _ApiSetAuthUserApi_ | [**register_user**](docs/ApiSetAuthUserApi.md#register_user) | **POST** /user/new | Register an new User | +| _ApiSetNoAuthUserApi_ | [**login**](docs/ApiSetNoAuthUserApi.md#login) | **POST** /login | Log in as a specific user | +| _ApiSetNoAuthUserApi_ | [**logout**](docs/ApiSetNoAuthUserApi.md#logout) | **POST** /logout | Log the current user out | +| _ApiSetNoAuthUserApi_ | [**provision**](docs/ApiSetNoAuthUserApi.md#provision) | **POST** /provision | Provision this instance. | ## Documentation For Models - - [Barcode](docs/Barcode.md) - - [BarcodeId](docs/BarcodeId.md) - - [Content](docs/Content.md) - - [ContentOneOf](docs/ContentOneOf.md) - - [ContentOneOf1](docs/ContentOneOf1.md) - - [CooklangRecipe](docs/CooklangRecipe.md) - - [Cookware](docs/Cookware.md) - - [Ingredient](docs/Ingredient.md) - - [IngredientOneOf](docs/IngredientOneOf.md) - - [IngredientOneOf1](docs/IngredientOneOf1.md) - - [IngredientOneOf1NotRegisteredProduct](docs/IngredientOneOf1NotRegisteredProduct.md) - - [IngredientOneOf2](docs/IngredientOneOf2.md) - - [IngredientOneOf2RecipeReference](docs/IngredientOneOf2RecipeReference.md) - - [IngredientOneOfRegisteredProduct](docs/IngredientOneOfRegisteredProduct.md) - - [Item](docs/Item.md) - - [ItemOneOf](docs/ItemOneOf.md) - - [ItemOneOf1](docs/ItemOneOf1.md) - - [ItemOneOf1Ingredient](docs/ItemOneOf1Ingredient.md) - - [ItemOneOf2](docs/ItemOneOf2.md) - - [ItemOneOf3](docs/ItemOneOf3.md) - - [ItemOneOf4](docs/ItemOneOf4.md) - - [ItemOneOfText](docs/ItemOneOfText.md) - - [LoginInfo](docs/LoginInfo.md) - - [Metadata](docs/Metadata.md) - - [NameAndUrl](docs/NameAndUrl.md) - - [PasswordHash](docs/PasswordHash.md) - - [Product](docs/Product.md) - - [ProductAmount](docs/ProductAmount.md) - - [ProductId](docs/ProductId.md) - - [ProductParent](docs/ProductParent.md) - - [ProductParentId](docs/ProductParentId.md) - - [ProductParentStub](docs/ProductParentStub.md) - - [ProductStub](docs/ProductStub.md) - - [ProvisionInfo](docs/ProvisionInfo.md) - - [Recipe](docs/Recipe.md) - - [RecipeId](docs/RecipeId.md) - - [RecipeParent](docs/RecipeParent.md) - - [RecipeParentId](docs/RecipeParentId.md) - - [RecipeParentStub](docs/RecipeParentStub.md) - - [RecipeStub](docs/RecipeStub.md) - - [Section](docs/Section.md) - - [Step](docs/Step.md) - - [Timer](docs/Timer.md) - - [Unit](docs/Unit.md) - - [UnitAmount](docs/UnitAmount.md) - - [UnitId](docs/UnitId.md) - - [UnitProperty](docs/UnitProperty.md) - - [UnitPropertyId](docs/UnitPropertyId.md) - - [UnitPropertyStub](docs/UnitPropertyStub.md) - - [UnitStub](docs/UnitStub.md) - - [User](docs/User.md) - - [UserId](docs/UserId.md) - - [UserStub](docs/UserStub.md) - +- [Barcode](docs/Barcode.md) +- [BarcodeId](docs/BarcodeId.md) +- [Content](docs/Content.md) +- [ContentOneOf](docs/ContentOneOf.md) +- [ContentOneOf1](docs/ContentOneOf1.md) +- [CooklangRecipe](docs/CooklangRecipe.md) +- [Cookware](docs/Cookware.md) +- [Ingredient](docs/Ingredient.md) +- [IngredientOneOf](docs/IngredientOneOf.md) +- [IngredientOneOf1](docs/IngredientOneOf1.md) +- [IngredientOneOf1NotRegisteredProduct](docs/IngredientOneOf1NotRegisteredProduct.md) +- [IngredientOneOf2](docs/IngredientOneOf2.md) +- [IngredientOneOf2RecipeReference](docs/IngredientOneOf2RecipeReference.md) +- [IngredientOneOfRegisteredProduct](docs/IngredientOneOfRegisteredProduct.md) +- [Item](docs/Item.md) +- [ItemOneOf](docs/ItemOneOf.md) +- [ItemOneOf1](docs/ItemOneOf1.md) +- [ItemOneOf1Ingredient](docs/ItemOneOf1Ingredient.md) +- [ItemOneOf2](docs/ItemOneOf2.md) +- [ItemOneOf3](docs/ItemOneOf3.md) +- [ItemOneOf4](docs/ItemOneOf4.md) +- [ItemOneOfText](docs/ItemOneOfText.md) +- [LoginInfo](docs/LoginInfo.md) +- [Metadata](docs/Metadata.md) +- [NameAndUrl](docs/NameAndUrl.md) +- [PasswordHash](docs/PasswordHash.md) +- [Product](docs/Product.md) +- [ProductAmount](docs/ProductAmount.md) +- [ProductId](docs/ProductId.md) +- [ProductParent](docs/ProductParent.md) +- [ProductParentId](docs/ProductParentId.md) +- [ProductParentStub](docs/ProductParentStub.md) +- [ProductStub](docs/ProductStub.md) +- [ProvisionInfo](docs/ProvisionInfo.md) +- [Recipe](docs/Recipe.md) +- [RecipeId](docs/RecipeId.md) +- [RecipeParent](docs/RecipeParent.md) +- [RecipeParentId](docs/RecipeParentId.md) +- [RecipeParentStub](docs/RecipeParentStub.md) +- [RecipeStub](docs/RecipeStub.md) +- [Section](docs/Section.md) +- [Step](docs/Step.md) +- [Timer](docs/Timer.md) +- [Unit](docs/Unit.md) +- [UnitAmount](docs/UnitAmount.md) +- [UnitId](docs/UnitId.md) +- [UnitProperty](docs/UnitProperty.md) +- [UnitPropertyId](docs/UnitPropertyId.md) +- [UnitPropertyStub](docs/UnitPropertyStub.md) +- [UnitStub](docs/UnitStub.md) +- [User](docs/User.md) +- [UserId](docs/UserId.md) +- [UserStub](docs/UserStub.md) To get access to the crate's generated documentation, use: @@ -149,4 +150,3 @@ cargo doc --open ## Author benedikt.peetz@b-peetz.de - diff --git a/crates/rocie-client/docs/ApiGetAuthInventoryApi.md b/crates/rocie-client/docs/ApiGetAuthInventoryApi.md index d43db67..196b28c 100644 --- a/crates/rocie-client/docs/ApiGetAuthInventoryApi.md +++ b/crates/rocie-client/docs/ApiGetAuthInventoryApi.md @@ -10,27 +10,23 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthInventoryApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**amount_by_id**](ApiGetAuthInventoryApi.md#amount_by_id) | **GET** /inventory/{id} | Get the amount of an product +# \\ApiGetAuthInventoryApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ---------------------------------------------------------- | ----------------------- | ---------------------------- | +| [**amount_by_id**](ApiGetAuthInventoryApi.md#amount_by_id) | **GET** /inventory/{id} | Get the amount of an product | ## amount_by_id -> models::ProductAmount amount_by_id(id) -Get the amount of an product +> models::ProductAmount amount_by_id(id) Get the amount of an product ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductId**](.md) | Product id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | -------------------- | ----------- | ---------- | ----- | +| **id** | [**ProductId**](.md) | Product id | [required] | ### Return type @@ -45,5 +41,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthProductApi.md b/crates/rocie-client/docs/ApiGetAuthProductApi.md index cb7fb13..bcf2013 100644 --- a/crates/rocie-client/docs/ApiGetAuthProductApi.md +++ b/crates/rocie-client/docs/ApiGetAuthProductApi.md @@ -10,34 +10,30 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthProductApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**product_by_id**](ApiGetAuthProductApi.md#product_by_id) | **GET** /product/by-id/{id} | Get Product by id -[**product_by_name**](ApiGetAuthProductApi.md#product_by_name) | **GET** /product/by-name/{name} | Get Product by name -[**product_suggestion_by_name**](ApiGetAuthProductApi.md#product_suggestion_by_name) | **GET** /product/by-part-name/{name} | Get Product suggestion by name -[**products_by_product_parent_id_direct**](ApiGetAuthProductApi.md#products_by_product_parent_id_direct) | **GET** /product/by-product-parent-id-direct/{id} | Get Products by it's product parent id -[**products_by_product_parent_id_indirect**](ApiGetAuthProductApi.md#products_by_product_parent_id_indirect) | **GET** /product/by-product-parent-id-indirect/{id} | Get Products by it's product parent id -[**products_in_storage**](ApiGetAuthProductApi.md#products_in_storage) | **GET** /products_in_storage/ | Return all products, which non-null amount in storage -[**products_registered**](ApiGetAuthProductApi.md#products_registered) | **GET** /products_registered/ | Return all registered products -[**products_without_product_parent**](ApiGetAuthProductApi.md#products_without_product_parent) | **GET** /product/without-product-parent | Get Products by it's absents of a product parent +# \\ApiGetAuthProductApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------- | ----------------------------------------------------- | +| [**product_by_id**](ApiGetAuthProductApi.md#product_by_id) | **GET** /product/by-id/{id} | Get Product by id | +| [**product_by_name**](ApiGetAuthProductApi.md#product_by_name) | **GET** /product/by-name/{name} | Get Product by name | +| [**product_suggestion_by_name**](ApiGetAuthProductApi.md#product_suggestion_by_name) | **GET** /product/by-part-name/{name} | Get Product suggestion by name | +| [**products_by_product_parent_id_direct**](ApiGetAuthProductApi.md#products_by_product_parent_id_direct) | **GET** /product/by-product-parent-id-direct/{id} | Get Products by it's product parent id | +| [**products_by_product_parent_id_indirect**](ApiGetAuthProductApi.md#products_by_product_parent_id_indirect) | **GET** /product/by-product-parent-id-indirect/{id} | Get Products by it's product parent id | +| [**products_in_storage**](ApiGetAuthProductApi.md#products_in_storage) | **GET** /products_in_storage/ | Return all products, which non-null amount in storage | +| [**products_registered**](ApiGetAuthProductApi.md#products_registered) | **GET** /products_registered/ | Return all registered products | +| [**products_without_product_parent**](ApiGetAuthProductApi.md#products_without_product_parent) | **GET** /product/without-product-parent | Get Products by it's absents of a product parent | ## product_by_id -> models::Product product_by_id(id) -Get Product by id +> models::Product product_by_id(id) Get Product by id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductId**](.md) | Product id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | -------------------- | ----------- | ---------- | ----- | +| **id** | [**ProductId**](.md) | Product id | [required] | ### Return type @@ -52,20 +48,20 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## product_by_name -> models::Product product_by_name(name) -Get Product by name +> models::Product product_by_name(name) Get Product by name ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the product | [required] | +| Name | Type | Description | Required | Notes | +| -------- | ---------- | ------------------- | ---------- | ----- | +| **name** | **String** | Name of the product | [required] | ### Return type @@ -80,20 +76,21 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## product_suggestion_by_name -> Vec<models::Product> product_suggestion_by_name(name) -Get Product suggestion by name +> Vec<models::Product> product_suggestion_by_name(name) Get Product suggestion +> by name ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**name** | **String** | Partial name of a product | [required] | +| Name | Type | Description | Required | Notes | +| -------- | ---------- | ------------------------- | ---------- | ----- | +| **name** | **String** | Partial name of a product | [required] | ### Return type @@ -108,22 +105,23 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## products_by_product_parent_id_direct -> Vec<models::Product> products_by_product_parent_id_direct(id) -Get Products by it's product parent id +> Vec<models::Product> products_by_product_parent_id_direct(id) Get Products by +> it's product parent id This will only return products directly associated with this product parent id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductParentId**](.md) | Product parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | -------------------------- | ----------------- | ---------- | ----- | +| **id** | [**ProductParentId**](.md) | Product parent id | [required] | ### Return type @@ -138,22 +136,23 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## products_by_product_parent_id_indirect -> Vec<models::Product> products_by_product_parent_id_indirect(id) -Get Products by it's product parent id +> Vec<models::Product> products_by_product_parent_id_indirect(id) Get Products +> by it's product parent id This will also return all products below this product parent id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductParentId**](.md) | Product parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | -------------------------- | ----------------- | ---------- | ----- | +| **id** | [**ProductParentId**](.md) | Product parent id | [required] | ### Return type @@ -168,13 +167,15 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## products_in_storage -> Vec<models::Product> products_in_storage() -Return all products, which non-null amount in storage +> Vec<models::Product> products_in_storage() Return all products, which non-null +> amount in storage ### Parameters @@ -193,13 +194,14 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## products_registered -> Vec<models::Product> products_registered() -Return all registered products +> Vec<models::Product> products_registered() Return all registered products ### Parameters @@ -218,13 +220,15 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## products_without_product_parent -> Vec<models::Product> products_without_product_parent() -Get Products by it's absents of a product parent +> Vec<models::Product> products_without_product_parent() Get Products by it's +> absents of a product parent This will only return products without a product parent associated with it @@ -245,5 +249,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthProductParentApi.md b/crates/rocie-client/docs/ApiGetAuthProductParentApi.md index a0e7203..826add0 100644 --- a/crates/rocie-client/docs/ApiGetAuthProductParentApi.md +++ b/crates/rocie-client/docs/ApiGetAuthProductParentApi.md @@ -10,22 +10,20 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthProductParentApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**product_parents**](ApiGetAuthProductParentApi.md#product_parents) | **GET** /product_parents/ | Return all registered product parents -[**product_parents_toplevel**](ApiGetAuthProductParentApi.md#product_parents_toplevel) | **GET** /product_parents_toplevel/ | Return all registered product parents, that have no parents themselves -[**product_parents_under**](ApiGetAuthProductParentApi.md#product_parents_under) | **GET** /product_parents_under/{id} | Return all parents, that have this parent as parent +# \\ApiGetAuthProductParentApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| -------------------------------------------------------------------------------------- | ----------------------------------- | ---------------------------------------------------------------------- | +| [**product_parents**](ApiGetAuthProductParentApi.md#product_parents) | **GET** /product_parents/ | Return all registered product parents | +| [**product_parents_toplevel**](ApiGetAuthProductParentApi.md#product_parents_toplevel) | **GET** /product_parents_toplevel/ | Return all registered product parents, that have no parents themselves | +| [**product_parents_under**](ApiGetAuthProductParentApi.md#product_parents_under) | **GET** /product_parents_under/{id} | Return all parents, that have this parent as parent | ## product_parents -> Vec<models::ProductParent> product_parents() -Return all registered product parents +> Vec<models::ProductParent> product_parents() Return all registered product +> parents ### Parameters @@ -44,13 +42,15 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## product_parents_toplevel -> Vec<models::ProductParent> product_parents_toplevel() -Return all registered product parents, that have no parents themselves +> Vec<models::ProductParent> product_parents_toplevel() Return all registered +> product parents, that have no parents themselves ### Parameters @@ -69,20 +69,21 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## product_parents_under -> Vec<models::ProductParent> product_parents_under(id) -Return all parents, that have this parent as parent +> Vec<models::ProductParent> product_parents_under(id) Return all parents, that +> have this parent as parent ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductParentId**](.md) | Product parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | -------------------------- | ----------------- | ---------- | ----- | +| **id** | [**ProductParentId**](.md) | Product parent id | [required] | ### Return type @@ -97,5 +98,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthRecipeApi.md b/crates/rocie-client/docs/ApiGetAuthRecipeApi.md index fdd832e..f690fbf 100644 --- a/crates/rocie-client/docs/ApiGetAuthRecipeApi.md +++ b/crates/rocie-client/docs/ApiGetAuthRecipeApi.md @@ -10,32 +10,28 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthRecipeApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**recipe_by_id**](ApiGetAuthRecipeApi.md#recipe_by_id) | **GET** /recipe/by-id/{id} | Get an recipe by it's id. -[**recipe_by_name**](ApiGetAuthRecipeApi.md#recipe_by_name) | **GET** /recipe/by-name/{name} | Get an recipe by it's name. -[**recipes**](ApiGetAuthRecipeApi.md#recipes) | **GET** /recipe/all | Get all added recipes -[**recipes_by_recipe_parent_id_direct**](ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_direct) | **GET** /recipe/by-recipe-parent-id-direct/{id} | Get Recipes by it's recipe parent id -[**recipes_by_recipe_parent_id_indirect**](ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_indirect) | **GET** /recipe/by-recipe-parent-id-indirect/{id} | Get Recipes by it's recipe parent id -[**recipes_without_recipe_parent**](ApiGetAuthRecipeApi.md#recipes_without_recipe_parent) | **GET** /recipe/without-recipe-parent | Get Recipes by it's absents of a recipe parent +# \\ApiGetAuthRecipeApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------- | ---------------------------------------------- | +| [**recipe_by_id**](ApiGetAuthRecipeApi.md#recipe_by_id) | **GET** /recipe/by-id/{id} | Get an recipe by it's id. | +| [**recipe_by_name**](ApiGetAuthRecipeApi.md#recipe_by_name) | **GET** /recipe/by-name/{name} | Get an recipe by it's name. | +| [**recipes**](ApiGetAuthRecipeApi.md#recipes) | **GET** /recipe/all | Get all added recipes | +| [**recipes_by_recipe_parent_id_direct**](ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_direct) | **GET** /recipe/by-recipe-parent-id-direct/{id} | Get Recipes by it's recipe parent id | +| [**recipes_by_recipe_parent_id_indirect**](ApiGetAuthRecipeApi.md#recipes_by_recipe_parent_id_indirect) | **GET** /recipe/by-recipe-parent-id-indirect/{id} | Get Recipes by it's recipe parent id | +| [**recipes_without_recipe_parent**](ApiGetAuthRecipeApi.md#recipes_without_recipe_parent) | **GET** /recipe/without-recipe-parent | Get Recipes by it's absents of a recipe parent | ## recipe_by_id -> models::Recipe recipe_by_id(id) -Get an recipe by it's id. +> models::Recipe recipe_by_id(id) Get an recipe by it's id. ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**RecipeId**](.md) | Recipe id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------- | ----------- | ---------- | ----- | +| **id** | [**RecipeId**](.md) | Recipe id | [required] | ### Return type @@ -50,20 +46,20 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipe_by_name -> models::Recipe recipe_by_name(name) -Get an recipe by it's name. +> models::Recipe recipe_by_name(name) Get an recipe by it's name. ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**name** | **String** | Recipe name | [required] | +| Name | Type | Description | Required | Notes | +| -------- | ---------- | ----------- | ---------- | ----- | +| **name** | **String** | Recipe name | [required] | ### Return type @@ -78,13 +74,14 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipes -> Vec<models::Recipe> recipes() -Get all added recipes +> Vec<models::Recipe> recipes() Get all added recipes ### Parameters @@ -103,22 +100,23 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipes_by_recipe_parent_id_direct -> Vec<models::Recipe> recipes_by_recipe_parent_id_direct(id) -Get Recipes by it's recipe parent id +> Vec<models::Recipe> recipes_by_recipe_parent_id_direct(id) Get Recipes by it's +> recipe parent id This will only return recipes directly associated with this recipe parent id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------------- | ---------------- | ---------- | ----- | +| **id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | ### Return type @@ -133,22 +131,23 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipes_by_recipe_parent_id_indirect -> Vec<models::Recipe> recipes_by_recipe_parent_id_indirect(id) -Get Recipes by it's recipe parent id +> Vec<models::Recipe> recipes_by_recipe_parent_id_indirect(id) Get Recipes by +> it's recipe parent id This will also return all recipes below this recipe parent id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------------- | ---------------- | ---------- | ----- | +| **id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | ### Return type @@ -163,13 +162,15 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipes_without_recipe_parent -> Vec<models::Recipe> recipes_without_recipe_parent() -Get Recipes by it's absents of a recipe parent +> Vec<models::Recipe> recipes_without_recipe_parent() Get Recipes by it's +> absents of a recipe parent This will only return recipes without a recipe parent associated with it @@ -190,5 +191,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthRecipeParentApi.md b/crates/rocie-client/docs/ApiGetAuthRecipeParentApi.md index 17c1aca..fa5bb89 100644 --- a/crates/rocie-client/docs/ApiGetAuthRecipeParentApi.md +++ b/crates/rocie-client/docs/ApiGetAuthRecipeParentApi.md @@ -10,22 +10,20 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthRecipeParentApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**recipe_parents**](ApiGetAuthRecipeParentApi.md#recipe_parents) | **GET** /recipe_parents/ | Return all registered recipe parents -[**recipe_parents_toplevel**](ApiGetAuthRecipeParentApi.md#recipe_parents_toplevel) | **GET** /recipe_parents_toplevel/ | Return all registered recipe parents, that have no parents themselves -[**recipe_parents_under**](ApiGetAuthRecipeParentApi.md#recipe_parents_under) | **GET** /recipe_parents_under/{id} | Return all parents, that have this parent as parent +# \\ApiGetAuthRecipeParentApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ----------------------------------------------------------------------------------- | ---------------------------------- | --------------------------------------------------------------------- | +| [**recipe_parents**](ApiGetAuthRecipeParentApi.md#recipe_parents) | **GET** /recipe_parents/ | Return all registered recipe parents | +| [**recipe_parents_toplevel**](ApiGetAuthRecipeParentApi.md#recipe_parents_toplevel) | **GET** /recipe_parents_toplevel/ | Return all registered recipe parents, that have no parents themselves | +| [**recipe_parents_under**](ApiGetAuthRecipeParentApi.md#recipe_parents_under) | **GET** /recipe_parents_under/{id} | Return all parents, that have this parent as parent | ## recipe_parents -> Vec<models::RecipeParent> recipe_parents() -Return all registered recipe parents +> Vec<models::RecipeParent> recipe_parents() Return all registered recipe +> parents ### Parameters @@ -44,13 +42,15 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipe_parents_toplevel -> Vec<models::RecipeParent> recipe_parents_toplevel() -Return all registered recipe parents, that have no parents themselves +> Vec<models::RecipeParent> recipe_parents_toplevel() Return all registered +> recipe parents, that have no parents themselves ### Parameters @@ -69,20 +69,21 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## recipe_parents_under -> Vec<models::RecipeParent> recipe_parents_under(id) -Return all parents, that have this parent as parent +> Vec<models::RecipeParent> recipe_parents_under(id) Return all parents, that +> have this parent as parent ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------------- | ---------------- | ---------- | ----- | +| **id** | [**RecipeParentId**](.md) | Recipe parent id | [required] | ### Return type @@ -97,5 +98,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthRefinedRecipeApi.md b/crates/rocie-client/docs/ApiGetAuthRefinedRecipeApi.md index 35bf5a5..9e991ae 100644 --- a/crates/rocie-client/docs/ApiGetAuthRefinedRecipeApi.md +++ b/crates/rocie-client/docs/ApiGetAuthRefinedRecipeApi.md @@ -10,27 +10,24 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthRefinedRecipeApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**refined_recipe_by_id**](ApiGetAuthRefinedRecipeApi.md#refined_recipe_by_id) | **GET** /refined-recipe/by-id/{id} | Get an refined recipe from it's recipe's id. +# \\ApiGetAuthRefinedRecipeApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------------------------------ | ---------------------------------- | -------------------------------------------- | +| [**refined_recipe_by_id**](ApiGetAuthRefinedRecipeApi.md#refined_recipe_by_id) | **GET** /refined-recipe/by-id/{id} | Get an refined recipe from it's recipe's id. | ## refined_recipe_by_id -> models::RefinedRecipe refined_recipe_by_id(id) -Get an refined recipe from it's recipe's id. +> models::RefinedRecipe refined_recipe_by_id(id) Get an refined recipe from it's +> recipe's id. ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**RecipeId**](.md) | Recipe id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------- | ----------- | ---------- | ----- | +| **id** | [**RecipeId**](.md) | Recipe id | [required] | ### Return type @@ -45,5 +42,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthUnitApi.md b/crates/rocie-client/docs/ApiGetAuthUnitApi.md index e1f1141..8ad20c4 100644 --- a/crates/rocie-client/docs/ApiGetAuthUnitApi.md +++ b/crates/rocie-client/docs/ApiGetAuthUnitApi.md @@ -10,29 +10,25 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthUnitApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**unit_by_id**](ApiGetAuthUnitApi.md#unit_by_id) | **GET** /unit/{id} | Get Unit by id -[**units**](ApiGetAuthUnitApi.md#units) | **GET** /units/ | Return all registered units -[**units_by_property_id**](ApiGetAuthUnitApi.md#units_by_property_id) | **GET** /units-by-property/{id} | Return all registered units for a specific unit property +# \\ApiGetAuthUnitApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| --------------------------------------------------------------------- | ------------------------------- | -------------------------------------------------------- | +| [**unit_by_id**](ApiGetAuthUnitApi.md#unit_by_id) | **GET** /unit/{id} | Get Unit by id | +| [**units**](ApiGetAuthUnitApi.md#units) | **GET** /units/ | Return all registered units | +| [**units_by_property_id**](ApiGetAuthUnitApi.md#units_by_property_id) | **GET** /units-by-property/{id} | Return all registered units for a specific unit property | ## unit_by_id -> models::Unit unit_by_id(id) -Get Unit by id +> models::Unit unit_by_id(id) Get Unit by id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**UnitId**](.md) | Unit id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ----------------- | ----------- | ---------- | ----- | +| **id** | [**UnitId**](.md) | Unit id | [required] | ### Return type @@ -47,13 +43,14 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## units -> Vec<models::Unit> units() -Return all registered units +> Vec<models::Unit> units() Return all registered units ### Parameters @@ -72,20 +69,21 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## units_by_property_id -> Vec<models::Unit> units_by_property_id(id) -Return all registered units for a specific unit property +> Vec<models::Unit> units_by_property_id(id) Return all registered units for a +> specific unit property ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**UnitPropertyId**](.md) | Unit property id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------------- | ---------------- | ---------- | ----- | +| **id** | [**UnitPropertyId**](.md) | Unit property id | [required] | ### Return type @@ -100,5 +98,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthUnitPropertyApi.md b/crates/rocie-client/docs/ApiGetAuthUnitPropertyApi.md index 422f4c9..35b994b 100644 --- a/crates/rocie-client/docs/ApiGetAuthUnitPropertyApi.md +++ b/crates/rocie-client/docs/ApiGetAuthUnitPropertyApi.md @@ -10,21 +10,19 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthUnitPropertyApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**unit_properties**](ApiGetAuthUnitPropertyApi.md#unit_properties) | **GET** /unit-properties/ | Return all registered unit properties -[**unit_property_by_id**](ApiGetAuthUnitPropertyApi.md#unit_property_by_id) | **GET** /unit-property/{id} | Get Unit property by id +# \\ApiGetAuthUnitPropertyApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| --------------------------------------------------------------------------- | --------------------------- | ------------------------------------- | +| [**unit_properties**](ApiGetAuthUnitPropertyApi.md#unit_properties) | **GET** /unit-properties/ | Return all registered unit properties | +| [**unit_property_by_id**](ApiGetAuthUnitPropertyApi.md#unit_property_by_id) | **GET** /unit-property/{id} | Get Unit property by id | ## unit_properties -> Vec<models::UnitProperty> unit_properties() -Return all registered unit properties +> Vec<models::UnitProperty> unit_properties() Return all registered unit +> properties ### Parameters @@ -43,20 +41,20 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## unit_property_by_id -> models::UnitProperty unit_property_by_id(id) -Get Unit property by id +> models::UnitProperty unit_property_by_id(id) Get Unit property by id ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**UnitPropertyId**](.md) | Unit Property id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ------------------------- | ---------------- | ---------- | ----- | +| **id** | [**UnitPropertyId**](.md) | Unit Property id | [required] | ### Return type @@ -71,5 +69,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetAuthUserApi.md b/crates/rocie-client/docs/ApiGetAuthUserApi.md index 183db09..cd0a406 100644 --- a/crates/rocie-client/docs/ApiGetAuthUserApi.md +++ b/crates/rocie-client/docs/ApiGetAuthUserApi.md @@ -10,28 +10,24 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetAuthUserApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**user_by_id**](ApiGetAuthUserApi.md#user_by_id) | **GET** /user/{id} | Get an specific user by id. -[**users**](ApiGetAuthUserApi.md#users) | **GET** /users | Get all registered users. +# \\ApiGetAuthUserApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------- | ------------------ | --------------------------- | +| [**user_by_id**](ApiGetAuthUserApi.md#user_by_id) | **GET** /user/{id} | Get an specific user by id. | +| [**users**](ApiGetAuthUserApi.md#users) | **GET** /users | Get all registered users. | ## user_by_id -> models::User user_by_id(id) -Get an specific user by id. +> models::User user_by_id(id) Get an specific user by id. ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**UserId**](.md) | User id | [required] | +| Name | Type | Description | Required | Notes | +| ------ | ----------------- | ----------- | ---------- | ----- | +| **id** | [**UserId**](.md) | User id | [required] | ### Return type @@ -46,13 +42,14 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## users -> Vec<models::User> users() -Get all registered users. +> Vec<models::User> users() Get all registered users. ### Parameters @@ -71,5 +68,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiGetNoAuthStateApi.md b/crates/rocie-client/docs/ApiGetNoAuthStateApi.md index 0d0cbb1..ca13a7d 100644 --- a/crates/rocie-client/docs/ApiGetNoAuthStateApi.md +++ b/crates/rocie-client/docs/ApiGetNoAuthStateApi.md @@ -10,21 +10,18 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiGetNoAuthStateApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**can_be_provisioned**](ApiGetNoAuthStateApi.md#can_be_provisioned) | **GET** /can-be-provisioned | Check if the server can be provisioned -[**is_logged_in**](ApiGetNoAuthStateApi.md#is_logged_in) | **GET** /is-logged-in | Check if you are logged in +# \\ApiGetNoAuthStateApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| -------------------------------------------------------------------- | --------------------------- | -------------------------------------- | +| [**can_be_provisioned**](ApiGetNoAuthStateApi.md#can_be_provisioned) | **GET** /can-be-provisioned | Check if the server can be provisioned | +| [**is_logged_in**](ApiGetNoAuthStateApi.md#is_logged_in) | **GET** /is-logged-in | Check if you are logged in | ## can_be_provisioned -> bool can_be_provisioned() -Check if the server can be provisioned +> bool can_be_provisioned() Check if the server can be provisioned ### Parameters @@ -43,13 +40,14 @@ No authorization required - **Content-Type**: Not defined - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## is_logged_in -> bool is_logged_in() -Check if you are logged in +> bool is_logged_in() Check if you are logged in ### Parameters @@ -68,5 +66,7 @@ No authorization required - **Content-Type**: Not defined - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthBarcodeApi.md b/crates/rocie-client/docs/ApiSetAuthBarcodeApi.md index d79560b..d81c854 100644 --- a/crates/rocie-client/docs/ApiSetAuthBarcodeApi.md +++ b/crates/rocie-client/docs/ApiSetAuthBarcodeApi.md @@ -10,33 +10,29 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthBarcodeApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**buy_barcode**](ApiSetAuthBarcodeApi.md#buy_barcode) | **POST** /barcode/{barcode_id}/buy/{times} | Buy an barcode -[**consume_barcode**](ApiSetAuthBarcodeApi.md#consume_barcode) | **POST** /barcode/{id}/consume | Consume an barcode +# \\ApiSetAuthBarcodeApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| -------------------------------------------------------------- | ------------------------------------------ | ------------------ | +| [**buy_barcode**](ApiSetAuthBarcodeApi.md#buy_barcode) | **POST** /barcode/{barcode_id}/buy/{times} | Buy an barcode | +| [**consume_barcode**](ApiSetAuthBarcodeApi.md#consume_barcode) | **POST** /barcode/{id}/consume | Consume an barcode | ## buy_barcode -> buy_barcode(barcode_id, times) -Buy an barcode +> buy_barcode(barcode_id, times) Buy an barcode ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**barcode_id** | [**BarcodeId**](.md) | The numeric value of the barcode | [required] | -**times** | **u32** | How often to buy the barcode | [required] | +| Name | Type | Description | Required | Notes | +| -------------- | -------------------- | -------------------------------- | ---------- | ----- | +| **barcode_id** | [**BarcodeId**](.md) | The numeric value of the barcode | [required] | +| **times** | **u32** | How often to buy the barcode | [required] | ### Return type - (empty response body) +(empty response body) ### Authorization @@ -47,25 +43,25 @@ No authorization required - **Content-Type**: Not defined - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## consume_barcode -> consume_barcode(id, unit_amount) -Consume an barcode +> consume_barcode(id, unit_amount) Consume an barcode ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**BarcodeId**](.md) | The numeric value of the barcode | [required] | -**unit_amount** | [**UnitAmount**](UnitAmount.md) | | [required] | +| Name | Type | Description | Required | Notes | +| --------------- | ------------------------------- | -------------------------------- | ---------- | ----- | +| **id** | [**BarcodeId**](.md) | The numeric value of the barcode | [required] | +| **unit_amount** | [**UnitAmount**](UnitAmount.md) | | [required] | ### Return type - (empty response body) +(empty response body) ### Authorization @@ -76,5 +72,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthProductApi.md b/crates/rocie-client/docs/ApiSetAuthProductApi.md index c047ea4..40fc7cb 100644 --- a/crates/rocie-client/docs/ApiSetAuthProductApi.md +++ b/crates/rocie-client/docs/ApiSetAuthProductApi.md @@ -10,33 +10,29 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthProductApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**associate_barcode**](ApiSetAuthProductApi.md#associate_barcode) | **POST** /product/{id}/associate | Associate a barcode with a product -[**register_product**](ApiSetAuthProductApi.md#register_product) | **POST** /product/new | Register a product +# \\ApiSetAuthProductApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------------------ | -------------------------------- | ---------------------------------- | +| [**associate_barcode**](ApiSetAuthProductApi.md#associate_barcode) | **POST** /product/{id}/associate | Associate a barcode with a product | +| [**register_product**](ApiSetAuthProductApi.md#register_product) | **POST** /product/new | Register a product | ## associate_barcode -> associate_barcode(id, barcode) -Associate a barcode with a product +> associate_barcode(id, barcode) Associate a barcode with a product ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**id** | [**ProductId**](.md) | The id of the product to associated the barcode with | [required] | -**barcode** | [**Barcode**](Barcode.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ----------- | ------------------------- | ---------------------------------------------------- | ---------- | ----- | +| **id** | [**ProductId**](.md) | The id of the product to associated the barcode with | [required] | +| **barcode** | [**Barcode**](Barcode.md) | | [required] | ### Return type - (empty response body) +(empty response body) ### Authorization @@ -47,20 +43,20 @@ No authorization required - **Content-Type**: application/json - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## register_product -> models::ProductId register_product(product_stub) -Register a product +> models::ProductId register_product(product_stub) Register a product ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**product_stub** | [**ProductStub**](ProductStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ---------------- | --------------------------------- | ----------- | ---------- | ----- | +| **product_stub** | [**ProductStub**](ProductStub.md) | | [required] | ### Return type @@ -75,5 +71,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthProductParentApi.md b/crates/rocie-client/docs/ApiSetAuthProductParentApi.md index e6369c2..00e9234 100644 --- a/crates/rocie-client/docs/ApiSetAuthProductParentApi.md +++ b/crates/rocie-client/docs/ApiSetAuthProductParentApi.md @@ -10,27 +10,24 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthProductParentApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**register_product_parent**](ApiSetAuthProductParentApi.md#register_product_parent) | **POST** /product_parent/new | Register a product parent +# \\ApiSetAuthProductParentApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------------------------------------ | ---------------------------- | ------------------------- | +| [**register_product_parent**](ApiSetAuthProductParentApi.md#register_product_parent) | **POST** /product_parent/new | Register a product parent | ## register_product_parent -> models::ProductParentId register_product_parent(product_parent_stub) -Register a product parent +> models::ProductParentId register_product_parent(product_parent_stub) Register +> a product parent ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**product_parent_stub** | [**ProductParentStub**](ProductParentStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ----------------------- | --------------------------------------------- | ----------- | ---------- | ----- | +| **product_parent_stub** | [**ProductParentStub**](ProductParentStub.md) | | [required] | ### Return type @@ -45,5 +42,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthRecipeApi.md b/crates/rocie-client/docs/ApiSetAuthRecipeApi.md index 22cf076..ddd425a 100644 --- a/crates/rocie-client/docs/ApiSetAuthRecipeApi.md +++ b/crates/rocie-client/docs/ApiSetAuthRecipeApi.md @@ -10,27 +10,23 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthRecipeApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**add_recipe**](ApiSetAuthRecipeApi.md#add_recipe) | **POST** /recipe/new | Register a product parent +# \\ApiSetAuthRecipeApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| --------------------------------------------------- | -------------------- | ------------------------- | +| [**add_recipe**](ApiSetAuthRecipeApi.md#add_recipe) | **POST** /recipe/new | Register a product parent | ## add_recipe -> models::RecipeId add_recipe(recipe_stub) -Register a product parent +> models::RecipeId add_recipe(recipe_stub) Register a product parent ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**recipe_stub** | [**RecipeStub**](RecipeStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| --------------- | ------------------------------- | ----------- | ---------- | ----- | +| **recipe_stub** | [**RecipeStub**](RecipeStub.md) | | [required] | ### Return type @@ -45,5 +41,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthRecipeParentApi.md b/crates/rocie-client/docs/ApiSetAuthRecipeParentApi.md index 6b2b18c..4c34d90 100644 --- a/crates/rocie-client/docs/ApiSetAuthRecipeParentApi.md +++ b/crates/rocie-client/docs/ApiSetAuthRecipeParentApi.md @@ -10,27 +10,24 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthRecipeParentApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**register_recipe_parent**](ApiSetAuthRecipeParentApi.md#register_recipe_parent) | **POST** /recipe_parent/new | Register a product parent +# \\ApiSetAuthRecipeParentApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| --------------------------------------------------------------------------------- | --------------------------- | ------------------------- | +| [**register_recipe_parent**](ApiSetAuthRecipeParentApi.md#register_recipe_parent) | **POST** /recipe_parent/new | Register a product parent | ## register_recipe_parent -> models::RecipeParentId register_recipe_parent(recipe_parent_stub) -Register a product parent +> models::RecipeParentId register_recipe_parent(recipe_parent_stub) Register a +> product parent ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**recipe_parent_stub** | [**RecipeParentStub**](RecipeParentStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ---------------------- | ------------------------------------------- | ----------- | ---------- | ----- | +| **recipe_parent_stub** | [**RecipeParentStub**](RecipeParentStub.md) | | [required] | ### Return type @@ -45,5 +42,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthUnitApi.md b/crates/rocie-client/docs/ApiSetAuthUnitApi.md index ba14750..13326ef 100644 --- a/crates/rocie-client/docs/ApiSetAuthUnitApi.md +++ b/crates/rocie-client/docs/ApiSetAuthUnitApi.md @@ -10,27 +10,23 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthUnitApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**register_unit**](ApiSetAuthUnitApi.md#register_unit) | **POST** /unit/new | Register an Unit +# \\ApiSetAuthUnitApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------- | ------------------ | ---------------- | +| [**register_unit**](ApiSetAuthUnitApi.md#register_unit) | **POST** /unit/new | Register an Unit | ## register_unit -> models::UnitId register_unit(unit_stub) -Register an Unit +> models::UnitId register_unit(unit_stub) Register an Unit ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**unit_stub** | [**UnitStub**](UnitStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ------------- | --------------------------- | ----------- | ---------- | ----- | +| **unit_stub** | [**UnitStub**](UnitStub.md) | | [required] | ### Return type @@ -45,5 +41,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthUnitPropertyApi.md b/crates/rocie-client/docs/ApiSetAuthUnitPropertyApi.md index 05af1ef..4c40218 100644 --- a/crates/rocie-client/docs/ApiSetAuthUnitPropertyApi.md +++ b/crates/rocie-client/docs/ApiSetAuthUnitPropertyApi.md @@ -10,27 +10,24 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthUnitPropertyApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**register_unit_property**](ApiSetAuthUnitPropertyApi.md#register_unit_property) | **POST** /unit-property/new | Register an Unit Property +# \\ApiSetAuthUnitPropertyApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| --------------------------------------------------------------------------------- | --------------------------- | ------------------------- | +| [**register_unit_property**](ApiSetAuthUnitPropertyApi.md#register_unit_property) | **POST** /unit-property/new | Register an Unit Property | ## register_unit_property -> models::UnitPropertyId register_unit_property(unit_property_stub) -Register an Unit Property +> models::UnitPropertyId register_unit_property(unit_property_stub) Register an +> Unit Property ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**unit_property_stub** | [**UnitPropertyStub**](UnitPropertyStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ---------------------- | ------------------------------------------- | ----------- | ---------- | ----- | +| **unit_property_stub** | [**UnitPropertyStub**](UnitPropertyStub.md) | | [required] | ### Return type @@ -45,5 +42,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetAuthUserApi.md b/crates/rocie-client/docs/ApiSetAuthUserApi.md index cc3d5ac..0630617 100644 --- a/crates/rocie-client/docs/ApiSetAuthUserApi.md +++ b/crates/rocie-client/docs/ApiSetAuthUserApi.md @@ -10,27 +10,23 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetAuthUserApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**register_user**](ApiSetAuthUserApi.md#register_user) | **POST** /user/new | Register an new User +# \\ApiSetAuthUserApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------------- | ------------------ | -------------------- | +| [**register_user**](ApiSetAuthUserApi.md#register_user) | **POST** /user/new | Register an new User | ## register_user -> models::UserId register_user(user_stub) -Register an new User +> models::UserId register_user(user_stub) Register an new User ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**user_stub** | [**UserStub**](UserStub.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ------------- | --------------------------- | ----------- | ---------- | ----- | +| **user_stub** | [**UserStub**](UserStub.md) | | [required] | ### Return type @@ -45,5 +41,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ApiSetNoAuthUserApi.md b/crates/rocie-client/docs/ApiSetNoAuthUserApi.md index ab4be8a..0b46ad5 100644 --- a/crates/rocie-client/docs/ApiSetNoAuthUserApi.md +++ b/crates/rocie-client/docs/ApiSetNoAuthUserApi.md @@ -10,33 +10,29 @@ You should have received a copy of the License along with this program. If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. --> -# \ApiSetNoAuthUserApi - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**login**](ApiSetNoAuthUserApi.md#login) | **POST** /login | Log in as a specific user -[**logout**](ApiSetNoAuthUserApi.md#logout) | **POST** /logout | Log the current user out -[**provision**](ApiSetNoAuthUserApi.md#provision) | **POST** /provision | Provision this instance. +# \\ApiSetNoAuthUserApi +All URIs are relative to _http://localhost_ +| Method | HTTP request | Description | +| ------------------------------------------------- | ------------------- | ------------------------- | +| [**login**](ApiSetNoAuthUserApi.md#login) | **POST** /login | Log in as a specific user | +| [**logout**](ApiSetNoAuthUserApi.md#logout) | **POST** /logout | Log the current user out | +| [**provision**](ApiSetNoAuthUserApi.md#provision) | **POST** /provision | Provision this instance. | ## login -> login(login_info) -Log in as a specific user +> login(login_info) Log in as a specific user ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**login_info** | [**LoginInfo**](LoginInfo.md) | | [required] | +| Name | Type | Description | Required | Notes | +| -------------- | ----------------------------- | ----------- | ---------- | ----- | +| **login_info** | [**LoginInfo**](LoginInfo.md) | | [required] | ### Return type - (empty response body) +(empty response body) ### Authorization @@ -47,13 +43,14 @@ No authorization required - **Content-Type**: application/json - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## logout -> logout() -Log the current user out +> logout() Log the current user out ### Parameters @@ -61,7 +58,7 @@ This endpoint does not need any parameter. ### Return type - (empty response body) +(empty response body) ### Authorization @@ -72,22 +69,22 @@ No authorization required - **Content-Type**: Not defined - **Accept**: text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) ## provision -> models::UserId provision(provision_info) -Provision this instance. +> models::UserId provision(provision_info) Provision this instance. This only works, if no users exist yet. ### Parameters - -Name | Type | Description | Required | Notes -------------- | ------------- | ------------- | ------------- | ------------- -**provision_info** | [**ProvisionInfo**](ProvisionInfo.md) | | [required] | +| Name | Type | Description | Required | Notes | +| ------------------ | ------------------------------------- | ----------- | ---------- | ----- | +| **provision_info** | [**ProvisionInfo**](ProvisionInfo.md) | | [required] | ### Return type @@ -102,5 +99,7 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json, text/plain -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - +[[Back to top]](#) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Barcode.md b/crates/rocie-client/docs/Barcode.md index 28dc817..ea96a0c 100644 --- a/crates/rocie-client/docs/Barcode.md +++ b/crates/rocie-client/docs/Barcode.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | [**models::UnitAmount**](UnitAmount.md) | | -**id** | [**models::BarcodeId**](BarcodeId.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ---------- | --------------------------------------- | ----------- | ----- | +| **amount** | [**models::UnitAmount**](UnitAmount.md) | | +| **id** | [**models::BarcodeId**](BarcodeId.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/BarcodeId.md b/crates/rocie-client/docs/BarcodeId.md index 5c6446b..e0037f1 100644 --- a/crates/rocie-client/docs/BarcodeId.md +++ b/crates/rocie-client/docs/BarcodeId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **u32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------- | ----------- | ----- | +| **value** | **u32** | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Content.md b/crates/rocie-client/docs/Content.md index d957e79..8cd206f 100644 --- a/crates/rocie-client/docs/Content.md +++ b/crates/rocie-client/docs/Content.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Enum Variants -| Name | Description | -|---- | -----| -| ContentOneOf | Each type of content inside a section | +| Name | Description | +| ------------- | ------------------------------------- | +| ContentOneOf | Each type of content inside a section | | ContentOneOf1 | Each type of content inside a section | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ContentOneOf.md b/crates/rocie-client/docs/ContentOneOf.md index 124454f..fa91ef0 100644 --- a/crates/rocie-client/docs/ContentOneOf.md +++ b/crates/rocie-client/docs/ContentOneOf.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**step** | [**models::Step**](Step.md) | A step | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------- | --------------------------- | ----------- | ----- | +| **step** | [**models::Step**](Step.md) | A step | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ContentOneOf1.md b/crates/rocie-client/docs/ContentOneOf1.md index 2ed35ae..02edd63 100644 --- a/crates/rocie-client/docs/ContentOneOf1.md +++ b/crates/rocie-client/docs/ContentOneOf1.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | A paragraph of just text, no instructions | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------- | ---------- | ----------------------------------------- | ----- | +| **text** | **String** | A paragraph of just text, no instructions | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/CooklangRecipe.md b/crates/rocie-client/docs/CooklangRecipe.md index 5ae6ba0..326afc2 100644 --- a/crates/rocie-client/docs/CooklangRecipe.md +++ b/crates/rocie-client/docs/CooklangRecipe.md @@ -14,14 +14,14 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cookware** | [**Vec<models::Cookware>**](Cookware.md) | All the cookware | -**ingredients** | [**Vec<models::Ingredient>**](Ingredient.md) | All the ingredients | -**metadata** | [**models::Metadata**](Metadata.md) | Metadata as read from preamble | -**sections** | [**Vec<models::Section>**](Section.md) | Each of the sections If no sections declared, a section without name is the default. | -**timers** | [**Vec<models::Timer>**](Timer.md) | All the timers | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | -------------------------------------------- | ------------------------------------------------------------------------------------ | ----- | +| **cookware** | [**Vec<models::Cookware>**](Cookware.md) | All the cookware | +| **ingredients** | [**Vec<models::Ingredient>**](Ingredient.md) | All the ingredients | +| **metadata** | [**models::Metadata**](Metadata.md) | Metadata as read from preamble | +| **sections** | [**Vec<models::Section>**](Section.md) | Each of the sections If no sections declared, a section without name is the default. | +| **timers** | [**Vec<models::Timer>**](Timer.md) | All the timers | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Cookware.md b/crates/rocie-client/docs/Cookware.md index 2160161..dc8fa3e 100644 --- a/crates/rocie-client/docs/Cookware.md +++ b/crates/rocie-client/docs/Cookware.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alias** | Option<**String**> | Alias | [optional] -**name** | **String** | Name | -**note** | Option<**String**> | Note | [optional] -**quantity** | Option<**u32**> | Amount needed Note that this is a value, not a quantity, so it doesn't have units. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------ | ------------------- | ---------------------------------------------------------------------------------- | ---------- | +| **alias** | Option\<**String**> | Alias | [optional] | +| **name** | **String** | Name | +| **note** | Option\<**String**> | Note | [optional] | +| **quantity** | Option\<**u32**> | Amount needed Note that this is a value, not a quantity, so it doesn't have units. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Ingredient.md b/crates/rocie-client/docs/Ingredient.md index 030f2f3..067a7e9 100644 --- a/crates/rocie-client/docs/Ingredient.md +++ b/crates/rocie-client/docs/Ingredient.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Enum Variants -| Name | Description | -|---- | -----| -| IngredientOneOf | A recipe ingredient | +| Name | Description | +| ---------------- | ------------------- | +| IngredientOneOf | A recipe ingredient | | IngredientOneOf1 | A recipe ingredient | | IngredientOneOf2 | A recipe ingredient | -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOf.md b/crates/rocie-client/docs/IngredientOneOf.md index 7d29a6b..a48574e 100644 --- a/crates/rocie-client/docs/IngredientOneOf.md +++ b/crates/rocie-client/docs/IngredientOneOf.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**registered_product** | [**models::IngredientOneOfRegisteredProduct**](Ingredient_oneOf_RegisteredProduct.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| ---------------------- | ------------------------------------------------------------------------------------- | ----------- | ----- | +| **registered_product** | [**models::IngredientOneOfRegisteredProduct**](Ingredient_oneOf_RegisteredProduct.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOf1.md b/crates/rocie-client/docs/IngredientOneOf1.md index 87bf90a..edddc6f 100644 --- a/crates/rocie-client/docs/IngredientOneOf1.md +++ b/crates/rocie-client/docs/IngredientOneOf1.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**not_registered_product** | [**models::IngredientOneOf1NotRegisteredProduct**](Ingredient_oneOf_1_NotRegisteredProduct.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------------------------- | ---------------------------------------------------------------------------------------------- | ----------- | ----- | +| **not_registered_product** | [**models::IngredientOneOf1NotRegisteredProduct**](Ingredient_oneOf_1_NotRegisteredProduct.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOf1NotRegisteredProduct.md b/crates/rocie-client/docs/IngredientOneOf1NotRegisteredProduct.md index 8ff362f..5256fb5 100644 --- a/crates/rocie-client/docs/IngredientOneOf1NotRegisteredProduct.md +++ b/crates/rocie-client/docs/IngredientOneOf1NotRegisteredProduct.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | -**quantity** | Option<[**models::UnitAmount**](UnitAmount.md)> | Quantity | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------ | ------------------------------------------------ | ----------- | ---------- | +| **name** | **String** | | +| **quantity** | Option\<[**models::UnitAmount**](UnitAmount.md)> | Quantity | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOf2.md b/crates/rocie-client/docs/IngredientOneOf2.md index dc2fc08..2b58aa4 100644 --- a/crates/rocie-client/docs/IngredientOneOf2.md +++ b/crates/rocie-client/docs/IngredientOneOf2.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recipe_reference** | [**models::IngredientOneOf2RecipeReference**](Ingredient_oneOf_2_RecipeReference.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------------------- | ------------------------------------------------------------------------------------ | ----------- | ----- | +| **recipe_reference** | [**models::IngredientOneOf2RecipeReference**](Ingredient_oneOf_2_RecipeReference.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOf2RecipeReference.md b/crates/rocie-client/docs/IngredientOneOf2RecipeReference.md index dc841b0..984d650 100644 --- a/crates/rocie-client/docs/IngredientOneOf2RecipeReference.md +++ b/crates/rocie-client/docs/IngredientOneOf2RecipeReference.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | [**models::RecipeId**](RecipeId.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| ------ | ----------------------------------- | ----------- | ----- | +| **id** | [**models::RecipeId**](RecipeId.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/IngredientOneOfRegisteredProduct.md b/crates/rocie-client/docs/IngredientOneOfRegisteredProduct.md index c1e3723..0eae13e 100644 --- a/crates/rocie-client/docs/IngredientOneOfRegisteredProduct.md +++ b/crates/rocie-client/docs/IngredientOneOfRegisteredProduct.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alias** | Option<**String**> | Alias | [optional] -**id** | [**models::ProductId**](ProductId.md) | | -**quantity** | Option<[**models::ProductAmount**](ProductAmount.md)> | Quantity | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------ | ------------------------------------------------------ | ----------- | ---------- | +| **alias** | Option\<**String**> | Alias | [optional] | +| **id** | [**models::ProductId**](ProductId.md) | | +| **quantity** | Option\<[**models::ProductAmount**](ProductAmount.md)> | Quantity | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Item.md b/crates/rocie-client/docs/Item.md index 3e40bd9..a67a776 100644 --- a/crates/rocie-client/docs/Item.md +++ b/crates/rocie-client/docs/Item.md @@ -14,14 +14,14 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Enum Variants -| Name | Description | -|---- | -----| -| ItemOneOf | A step item Except for [`Item::Text`], the value is the index where the item is located in it's corresponding [`Vec`] in the [`Recipe`]. | -| ItemOneOf1 | A step item Except for [`Item::Text`], the value is the index where the item is located in it's corresponding [`Vec`] in the [`Recipe`]. | -| ItemOneOf2 | A step item Except for [`Item::Text`], the value is the index where the item is located in it's corresponding [`Vec`] in the [`Recipe`]. | -| ItemOneOf3 | A step item Except for [`Item::Text`], the value is the index where the item is located in it's corresponding [`Vec`] in the [`Recipe`]. | -| ItemOneOf4 | A step item Except for [`Item::Text`], the value is the index where the item is located in it's corresponding [`Vec`] in the [`Recipe`]. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Description | +| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | +| ItemOneOf | A step item Except for [\`Item::Text\`], the value is the index where the item is located in it's corresponding [\`Vec\`] in the [\`Recipe\`]. | +| ItemOneOf1 | A step item Except for [\`Item::Text\`], the value is the index where the item is located in it's corresponding [\`Vec\`] in the [\`Recipe\`]. | +| ItemOneOf2 | A step item Except for [\`Item::Text\`], the value is the index where the item is located in it's corresponding [\`Vec\`] in the [\`Recipe\`]. | +| ItemOneOf3 | A step item Except for [\`Item::Text\`], the value is the index where the item is located in it's corresponding [\`Vec\`] in the [\`Recipe\`]. | +| ItemOneOf4 | A step item Except for [\`Item::Text\`], the value is the index where the item is located in it's corresponding [\`Vec\`] in the [\`Recipe\`]. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf.md b/crates/rocie-client/docs/ItemOneOf.md index 96eaec0..4f5c548 100644 --- a/crates/rocie-client/docs/ItemOneOf.md +++ b/crates/rocie-client/docs/ItemOneOf.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | [**models::ItemOneOfText**](Item_oneOf_Text.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------- | ----------------------------------------------- | ----------- | ----- | +| **text** | [**models::ItemOneOfText**](Item_oneOf_Text.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf1.md b/crates/rocie-client/docs/ItemOneOf1.md index 1d1e19a..a0fcb6f 100644 --- a/crates/rocie-client/docs/ItemOneOf1.md +++ b/crates/rocie-client/docs/ItemOneOf1.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ingredient** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| -------------- | -------------------------------------------------------------- | ----------- | ----- | +| **ingredient** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf1Ingredient.md b/crates/rocie-client/docs/ItemOneOf1Ingredient.md index 9495db8..4466d6e 100644 --- a/crates/rocie-client/docs/ItemOneOf1Ingredient.md +++ b/crates/rocie-client/docs/ItemOneOf1Ingredient.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**index** | **u32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------- | ----------- | ----- | +| **index** | **u32** | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf2.md b/crates/rocie-client/docs/ItemOneOf2.md index bd274dc..1ae2606 100644 --- a/crates/rocie-client/docs/ItemOneOf2.md +++ b/crates/rocie-client/docs/ItemOneOf2.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cookware** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| ------------ | -------------------------------------------------------------- | ----------- | ----- | +| **cookware** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf3.md b/crates/rocie-client/docs/ItemOneOf3.md index f88f1d3..42067fc 100644 --- a/crates/rocie-client/docs/ItemOneOf3.md +++ b/crates/rocie-client/docs/ItemOneOf3.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timer** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | -------------------------------------------------------------- | ----------- | ----- | +| **timer** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOf4.md b/crates/rocie-client/docs/ItemOneOf4.md index 56d26b8..f2fedce 100644 --- a/crates/rocie-client/docs/ItemOneOf4.md +++ b/crates/rocie-client/docs/ItemOneOf4.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inline_quantity** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| ------------------- | -------------------------------------------------------------- | ----------- | ----- | +| **inline_quantity** | [**models::ItemOneOf1Ingredient**](Item_oneOf_1_Ingredient.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ItemOneOfText.md b/crates/rocie-client/docs/ItemOneOfText.md index c30ef27..2d3c510 100644 --- a/crates/rocie-client/docs/ItemOneOfText.md +++ b/crates/rocie-client/docs/ItemOneOfText.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ---------- | ----------- | ----- | +| **value** | **String** | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/LoginInfo.md b/crates/rocie-client/docs/LoginInfo.md index 3f35b30..c08018e 100644 --- a/crates/rocie-client/docs/LoginInfo.md +++ b/crates/rocie-client/docs/LoginInfo.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**password** | **String** | The password of the user. | -**user_name** | **String** | The user name of the user. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------- | ---------- | -------------------------- | ----- | +| **password** | **String** | The password of the user. | +| **user_name** | **String** | The user name of the user. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Metadata.md b/crates/rocie-client/docs/Metadata.md index 40d8152..09f9d6d 100644 --- a/crates/rocie-client/docs/Metadata.md +++ b/crates/rocie-client/docs/Metadata.md @@ -14,14 +14,14 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**author** | Option<[**models::NameAndUrl**](NameAndUrl.md)> | | [optional] -**description** | Option<**String**> | | [optional] -**source** | Option<[**models::NameAndUrl**](NameAndUrl.md)> | | [optional] -**tags** | Option<**Vec<String>**> | | [optional] -**title** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ------------------------------------------------ | ----------- | ---------- | +| **author** | Option\<[**models::NameAndUrl**](NameAndUrl.md)> | | [optional] | +| **description** | Option\<**String**> | | [optional] | +| **source** | Option\<[**models::NameAndUrl**](NameAndUrl.md)> | | [optional] | +| **tags** | Option\<**Vec<String>**> | | [optional] | +| **title** | Option\<**String**> | | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/NameAndUrl.md b/crates/rocie-client/docs/NameAndUrl.md index 1c67111..4db3a64 100644 --- a/crates/rocie-client/docs/NameAndUrl.md +++ b/crates/rocie-client/docs/NameAndUrl.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | Option<**String**> | | [optional] -**url** | Option<**String**> | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| -------- | ------------------- | ----------- | ---------- | +| **name** | Option\<**String**> | | [optional] | +| **url** | Option\<**String**> | | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/PasswordHash.md b/crates/rocie-client/docs/PasswordHash.md index f2d763a..7d6edab 100644 --- a/crates/rocie-client/docs/PasswordHash.md +++ b/crates/rocie-client/docs/PasswordHash.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ---------- | ----------- | ----- | +| **value** | **String** | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Product.md b/crates/rocie-client/docs/Product.md index f31c33e..b177d94 100644 --- a/crates/rocie-client/docs/Product.md +++ b/crates/rocie-client/docs/Product.md @@ -14,15 +14,15 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**associated_bar_codes** | [**Vec<models::Barcode>**](Barcode.md) | Which barcodes are associated with this product. | -**description** | Option<**String**> | An optional description of this product. | [optional] -**id** | [**models::ProductId**](ProductId.md) | The id of the product. | -**name** | **String** | The name of the product. This should be globally unique, to make searching easier for the user. | -**parent** | Option<[**models::ProductParentId**](ProductParentId.md)> | 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. | [optional] -**unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | The property this product is measured in. (This is probably always either Mass, Volume or Quantity). | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------------------ | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **associated_bar_codes** | [**Vec<models::Barcode>**](Barcode.md) | Which barcodes are associated with this product. | +| **description** | Option\<**String**> | An optional description of this product. | [optional] | +| **id** | [**models::ProductId**](ProductId.md) | The id of the product. | +| **name** | **String** | The name of the product. This should be globally unique, to make searching easier for the user. | +| **parent** | Option\<[**models::ProductParentId**](ProductParentId.md)> | 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. | [optional] | +| **unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | The property this product is measured in. (This is probably always either Mass, Volume or Quantity). | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductAmount.md b/crates/rocie-client/docs/ProductAmount.md index de0897a..f860435 100644 --- a/crates/rocie-client/docs/ProductAmount.md +++ b/crates/rocie-client/docs/ProductAmount.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | [**models::UnitAmount**](UnitAmount.md) | | -**product_id** | [**models::ProductId**](ProductId.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| -------------- | --------------------------------------- | ----------- | ----- | +| **amount** | [**models::UnitAmount**](UnitAmount.md) | | +| **product_id** | [**models::ProductId**](ProductId.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductId.md b/crates/rocie-client/docs/ProductId.md index 26a0199..ec7ec11 100644 --- a/crates/rocie-client/docs/ProductId.md +++ b/crates/rocie-client/docs/ProductId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductParent.md b/crates/rocie-client/docs/ProductParent.md index dc3ce04..8d86349 100644 --- a/crates/rocie-client/docs/ProductParent.md +++ b/crates/rocie-client/docs/ProductParent.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An optional description of this product parent. | [optional] -**id** | [**models::ProductParentId**](ProductParentId.md) | The id of the product parent. | -**name** | **String** | The name of the product parent. This should be globally unique, to make searching easier for the user. | -**parent** | Option<[**models::ProductParentId**](ProductParentId.md)> | The optional id of the parent of this product parent. This must not form a cycle. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------ | ---------- | +| **description** | Option\<**String**> | An optional description of this product parent. | [optional] | +| **id** | [**models::ProductParentId**](ProductParentId.md) | The id of the product parent. | +| **name** | **String** | The name of the product parent. This should be globally unique, to make searching easier for the user. | +| **parent** | Option\<[**models::ProductParentId**](ProductParentId.md)> | The optional id of the parent of this product parent. This must not form a cycle. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductParentId.md b/crates/rocie-client/docs/ProductParentId.md index 8f4d7b1..2afb8d7 100644 --- a/crates/rocie-client/docs/ProductParentId.md +++ b/crates/rocie-client/docs/ProductParentId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductParentStub.md b/crates/rocie-client/docs/ProductParentStub.md index 1017540..680e2bd 100644 --- a/crates/rocie-client/docs/ProductParentStub.md +++ b/crates/rocie-client/docs/ProductParentStub.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | A description. | [optional] -**name** | **String** | The name of the product parent | -**parent** | Option<[**models::ProductParentId**](ProductParentId.md)> | A parent of this product parent, otherwise the parent will be the root of the parent tree. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ---------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ---------- | +| **description** | Option\<**String**> | A description. | [optional] | +| **name** | **String** | The name of the product parent | +| **parent** | Option\<[**models::ProductParentId**](ProductParentId.md)> | A parent of this product parent, otherwise the parent will be the root of the parent tree. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProductStub.md b/crates/rocie-client/docs/ProductStub.md index c04838b..c707d02 100644 --- a/crates/rocie-client/docs/ProductStub.md +++ b/crates/rocie-client/docs/ProductStub.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | A description. | [optional] -**name** | **String** | The name of the product | -**parent** | Option<[**models::ProductParentId**](ProductParentId.md)> | A parent of this product, otherwise the parent will be the root of the parent tree. | [optional] -**unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | The Unit Property to use for this product. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ----------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------- | ---------- | +| **description** | Option\<**String**> | A description. | [optional] | +| **name** | **String** | The name of the product | +| **parent** | Option\<[**models::ProductParentId**](ProductParentId.md)> | A parent of this product, otherwise the parent will be the root of the parent tree. | [optional] | +| **unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | The Unit Property to use for this product. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/ProvisionInfo.md b/crates/rocie-client/docs/ProvisionInfo.md index 8a03687..2d8d7ef 100644 --- a/crates/rocie-client/docs/ProvisionInfo.md +++ b/crates/rocie-client/docs/ProvisionInfo.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**use_defaults** | **bool** | Whether we should apply the default configuration. | -**user** | [**models::UserStub**](UserStub.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ---------------- | ----------------------------------- | -------------------------------------------------- | ----- | +| **use_defaults** | **bool** | Whether we should apply the default configuration. | +| **user** | [**models::UserStub**](UserStub.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Recipe.md b/crates/rocie-client/docs/Recipe.md index 8024856..7cf33df 100644 --- a/crates/rocie-client/docs/Recipe.md +++ b/crates/rocie-client/docs/Recipe.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | [**models::CooklangRecipe**](CooklangRecipe.md) | The actual content of this recipe. | -**id** | [**models::RecipeId**](RecipeId.md) | The unique id of this recipe. | -**name** | **String** | The name of the recipe. This should be globally unique, to make searching easier for the user. | -**parent** | Option<[**models::RecipeParentId**](RecipeParentId.md)> | The parent this recipe has. This is effectively it's anchor in the recipe DAG. None means, that it has no parents and as such is in the toplevel. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ----------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **content** | [**models::CooklangRecipe**](CooklangRecipe.md) | The actual content of this recipe. | +| **id** | [**models::RecipeId**](RecipeId.md) | The unique id of this recipe. | +| **name** | **String** | The name of the recipe. This should be globally unique, to make searching easier for the user. | +| **parent** | Option\<[**models::RecipeParentId**](RecipeParentId.md)> | The parent this recipe has. This is effectively it's anchor in the recipe DAG. None means, that it has no parents and as such is in the toplevel. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RecipeId.md b/crates/rocie-client/docs/RecipeId.md index 151fe5d..f8d29ac 100644 --- a/crates/rocie-client/docs/RecipeId.md +++ b/crates/rocie-client/docs/RecipeId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RecipeParent.md b/crates/rocie-client/docs/RecipeParent.md index f713201..52a50ee 100644 --- a/crates/rocie-client/docs/RecipeParent.md +++ b/crates/rocie-client/docs/RecipeParent.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An optional description of this recipe parent. | [optional] -**id** | [**models::RecipeParentId**](RecipeParentId.md) | The id of the recipe parent. | -**name** | **String** | The name of the recipe parent. This should be globally unique, to make searching easier for the user. | -**parent** | Option<[**models::RecipeParentId**](RecipeParentId.md)> | The optional id of the parent of this recipe parent. This must not form a cycle. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ---------- | +| **description** | Option\<**String**> | An optional description of this recipe parent. | [optional] | +| **id** | [**models::RecipeParentId**](RecipeParentId.md) | The id of the recipe parent. | +| **name** | **String** | The name of the recipe parent. This should be globally unique, to make searching easier for the user. | +| **parent** | Option\<[**models::RecipeParentId**](RecipeParentId.md)> | The optional id of the parent of this recipe parent. This must not form a cycle. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RecipeParentId.md b/crates/rocie-client/docs/RecipeParentId.md index cfa5755..1a31887 100644 --- a/crates/rocie-client/docs/RecipeParentId.md +++ b/crates/rocie-client/docs/RecipeParentId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RecipeParentStub.md b/crates/rocie-client/docs/RecipeParentStub.md index 1d8b253..0823ded 100644 --- a/crates/rocie-client/docs/RecipeParentStub.md +++ b/crates/rocie-client/docs/RecipeParentStub.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | A description. | [optional] -**name** | **String** | The name of the recipe parent | -**parent** | Option<[**models::RecipeParentId**](RecipeParentId.md)> | A parent of this recipe parent, otherwise the parent will be the root of the parent tree. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | -------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------- | +| **description** | Option\<**String**> | A description. | [optional] | +| **name** | **String** | The name of the recipe parent | +| **parent** | Option\<[**models::RecipeParentId**](RecipeParentId.md)> | A parent of this recipe parent, otherwise the parent will be the root of the parent tree. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RecipeStub.md b/crates/rocie-client/docs/RecipeStub.md index fd96237..e55d25f 100644 --- a/crates/rocie-client/docs/RecipeStub.md +++ b/crates/rocie-client/docs/RecipeStub.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of this recipe, in cooklang format | -**name** | **String** | The globally unique name of this recipe | -**parent** | Option<[**models::RecipeParentId**](RecipeParentId.md)> | The optional parent of this recipe. | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ----------- | -------------------------------------------------------- | ---------------------------------------------- | ---------- | +| **content** | **String** | The content of this recipe, in cooklang format | +| **name** | **String** | The globally unique name of this recipe | +| **parent** | Option\<[**models::RecipeParentId**](RecipeParentId.md)> | The optional parent of this recipe. | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/RefinedRecipe.md b/crates/rocie-client/docs/RefinedRecipe.md index 43da81f..e4a71bc 100644 --- a/crates/rocie-client/docs/RefinedRecipe.md +++ b/crates/rocie-client/docs/RefinedRecipe.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | [**models::RecipeId**](RecipeId.md) | The unique id of this refined recipe's original recipe. | -**ingridients** | [**Vec<models::ProductId>**](ProductId.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ------------------------------------------ | ------------------------------------------------------- | ----- | +| **id** | [**models::RecipeId**](RecipeId.md) | The unique id of this refined recipe's original recipe. | +| **ingridients** | [**Vec<models::ProductId>**](ProductId.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Section.md b/crates/rocie-client/docs/Section.md index 5526aa5..aaeddda 100644 --- a/crates/rocie-client/docs/Section.md +++ b/crates/rocie-client/docs/Section.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | [**Vec<models::Content>**](Content.md) | Content inside | -**name** | Option<**String**> | Name of the section | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ----------- | -------------------------------------- | ------------------- | ---------- | +| **content** | [**Vec<models::Content>**](Content.md) | Content inside | +| **name** | Option\<**String**> | Name of the section | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Step.md b/crates/rocie-client/docs/Step.md index a4150b8..1563841 100644 --- a/crates/rocie-client/docs/Step.md +++ b/crates/rocie-client/docs/Step.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**Vec<models::Item>**](Item.md) | [`Item`]s inside | -**number** | **u32** | Step number The step numbers start at 1 in each section and increase with non text step. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ---------- | -------------------------------- | ---------------------------------------------------------------------------------------- | ----- | +| **items** | [**Vec<models::Item>**](Item.md) | \[`Item`\]s inside | +| **number** | **u32** | Step number The step numbers start at 1 in each section and increase with non text step. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Timer.md b/crates/rocie-client/docs/Timer.md index ffabee8..f8c9e7f 100644 --- a/crates/rocie-client/docs/Timer.md +++ b/crates/rocie-client/docs/Timer.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | Option<**String**> | Name | [optional] -**quantity** | Option<[**models::UnitAmount**](UnitAmount.md)> | Time quantity | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ------------ | ------------------------------------------------ | ------------- | ---------- | +| **name** | Option\<**String**> | Name | [optional] | +| **quantity** | Option\<[**models::UnitAmount**](UnitAmount.md)> | Time quantity | [optional] | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/Unit.md b/crates/rocie-client/docs/Unit.md index 0e99e49..5822859 100644 --- a/crates/rocie-client/docs/Unit.md +++ b/crates/rocie-client/docs/Unit.md @@ -14,15 +14,15 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | Description of this unit. | [optional] -**full_name_plural** | **String** | The plural version of this unit's name. Is used by a value of two and more. (We do not support Slovenian dual numerus versions) E.g.: Kilogram -> Kilograms gram -> meters | -**full_name_singular** | **String** | The singular version of this unit's name. E.g.: Kilogram Gram | -**id** | [**models::UnitId**](UnitId.md) | Unique id for this unit. | -**short_name** | **String** | Short name or abbreviation of this unit. E.g.: kg for Kilogram g for gram m for meter | -**unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | Which property is described by this unit. E.g.: kg -> Mass L -> Volume m/s -> Speed and so forth | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ---------------------- | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | +| **description** | Option\<**String**> | Description of this unit. | [optional] | +| **full_name_plural** | **String** | The plural version of this unit's name. Is used by a value of two and more. (We do not support Slovenian dual numerus versions) E.g.: Kilogram -> Kilograms gram -> meters | +| **full_name_singular** | **String** | The singular version of this unit's name. E.g.: Kilogram Gram | +| **id** | [**models::UnitId**](UnitId.md) | Unique id for this unit. | +| **short_name** | **String** | Short name or abbreviation of this unit. E.g.: kg for Kilogram g for gram m for meter | +| **unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | Which property is described by this unit. E.g.: kg -> Mass L -> Volume m/s -> Speed and so forth | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitAmount.md b/crates/rocie-client/docs/UnitAmount.md index bb263ba..c60d795 100644 --- a/crates/rocie-client/docs/UnitAmount.md +++ b/crates/rocie-client/docs/UnitAmount.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | [**models::UnitId**](UnitId.md) | | -**value** | **u32** | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **unit** | [**models::UnitId**](UnitId.md) | | +| **value** | **u32** | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitId.md b/crates/rocie-client/docs/UnitId.md index 7663daa..e898751 100644 --- a/crates/rocie-client/docs/UnitId.md +++ b/crates/rocie-client/docs/UnitId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitProperty.md b/crates/rocie-client/docs/UnitProperty.md index e8ce7bb..1ed7b4c 100644 --- a/crates/rocie-client/docs/UnitProperty.md +++ b/crates/rocie-client/docs/UnitProperty.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An description of this property. | [optional] -**id** | [**models::UnitPropertyId**](UnitPropertyId.md) | The unique ID for this unit property. | -**name** | **String** | The user-displayed name of this property. | -**units** | [**Vec<models::UnitId>**](UnitId.md) | The units with are measuring this property. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ----------------------------------------------- | ------------------------------------------- | ---------- | +| **description** | Option\<**String**> | An description of this property. | [optional] | +| **id** | [**models::UnitPropertyId**](UnitPropertyId.md) | The unique ID for this unit property. | +| **name** | **String** | The user-displayed name of this property. | +| **units** | [**Vec<models::UnitId>**](UnitId.md) | The units with are measuring this property. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitPropertyId.md b/crates/rocie-client/docs/UnitPropertyId.md index bd38c67..fab49bd 100644 --- a/crates/rocie-client/docs/UnitPropertyId.md +++ b/crates/rocie-client/docs/UnitPropertyId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitPropertyStub.md b/crates/rocie-client/docs/UnitPropertyStub.md index 7c50864..556caf0 100644 --- a/crates/rocie-client/docs/UnitPropertyStub.md +++ b/crates/rocie-client/docs/UnitPropertyStub.md @@ -14,11 +14,11 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An optional description of the unit property. | [optional] -**name** | **String** | The name of the unit property. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ------------------- | --------------------------------------------- | ---------- | +| **description** | Option\<**String**> | An optional description of the unit property. | [optional] | +| **name** | **String** | The name of the unit property. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UnitStub.md b/crates/rocie-client/docs/UnitStub.md index d272828..f9220dc 100644 --- a/crates/rocie-client/docs/UnitStub.md +++ b/crates/rocie-client/docs/UnitStub.md @@ -14,14 +14,14 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | | [optional] -**full_name_plural** | **String** | | -**full_name_singular** | **String** | | -**short_name** | **String** | | -**unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ---------------------- | ----------------------------------------------- | ----------- | ---------- | +| **description** | Option\<**String**> | | [optional] | +| **full_name_plural** | **String** | | +| **full_name_singular** | **String** | | +| **short_name** | **String** | | +| **unit_property** | [**models::UnitPropertyId**](UnitPropertyId.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/User.md b/crates/rocie-client/docs/User.md index 0b6b4b8..3e79afe 100644 --- a/crates/rocie-client/docs/User.md +++ b/crates/rocie-client/docs/User.md @@ -14,13 +14,13 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An description of this user. | [optional] -**id** | [**models::UserId**](UserId.md) | The unique ID for this user. | -**name** | **String** | The user-displayed name of this user. | -**password_hash** | [**models::PasswordHash**](PasswordHash.md) | The hash of the user's password. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| ----------------- | ------------------------------------------- | ------------------------------------- | ---------- | +| **description** | Option\<**String**> | An description of this user. | [optional] | +| **id** | [**models::UserId**](UserId.md) | The unique ID for this user. | +| **name** | **String** | The user-displayed name of this user. | +| **password_hash** | [**models::PasswordHash**](PasswordHash.md) | The hash of the user's password. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UserId.md b/crates/rocie-client/docs/UserId.md index 3144e57..6780054 100644 --- a/crates/rocie-client/docs/UserId.md +++ b/crates/rocie-client/docs/UserId.md @@ -14,10 +14,10 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**uuid::Uuid**](uuid::Uuid.md) | | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - +| Name | Type | Description | Notes | +| --------- | ------------------------------- | ----------- | ----- | +| **value** | [**uuid::Uuid**](uuid::Uuid.md) | | +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/docs/UserStub.md b/crates/rocie-client/docs/UserStub.md index 2d1e6c9..5d474be 100644 --- a/crates/rocie-client/docs/UserStub.md +++ b/crates/rocie-client/docs/UserStub.md @@ -14,12 +14,12 @@ If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | Option<**String**> | An optional description of the new user. | [optional] -**name** | **String** | The name of the new user. | -**password** | **String** | The password of the new user. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - +| Name | Type | Description | Notes | +| --------------- | ------------------- | ---------------------------------------- | ---------- | +| **description** | Option\<**String**> | An optional description of the new user. | [optional] | +| **name** | **String** | The name of the new user. | +| **password** | **String** | The password of the new user. | + +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to README]](../README.md) diff --git a/crates/rocie-client/src/apis/api_get_auth_inventory_api.rs b/crates/rocie-client/src/apis/api_get_auth_inventory_api.rs index 1fd4481..c039b48 100644 --- a/crates/rocie-client/src/apis/api_get_auth_inventory_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_inventory_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`amount_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -35,12 +33,18 @@ pub enum AmountByIdError { UnknownValue(serde_json::Value), } - -pub async fn amount_by_id(configuration: &configuration::Configuration, id: models::ProductId) -> Result<models::ProductAmount, Error<AmountByIdError>> { +pub async fn amount_by_id( + configuration: &configuration::Configuration, + id: models::ProductId, +) -> Result<models::ProductAmount, Error<AmountByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/inventory/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/inventory/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -62,13 +66,24 @@ pub async fn amount_by_id(configuration: &configuration::Configuration, id: mode let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ProductAmount`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ProductAmount`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::ProductAmount`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::ProductAmount`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<AmountByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_product_api.rs b/crates/rocie-client/src/apis/api_get_auth_product_api.rs index 5e9b282..50bca5b 100644 --- a/crates/rocie-client/src/apis/api_get_auth_product_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_product_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`product_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -101,12 +99,18 @@ pub enum ProductsWithoutProductParentError { UnknownValue(serde_json::Value), } - -pub async fn product_by_id(configuration: &configuration::Configuration, id: models::ProductId) -> Result<models::Product, Error<ProductByIdError>> { +pub async fn product_by_id( + configuration: &configuration::Configuration, + id: models::ProductId, +) -> Result<models::Product, Error<ProductByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/product/by-id/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/product/by-id/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -128,21 +132,40 @@ pub async fn product_by_id(configuration: &configuration::Configuration, id: mod let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Product`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Product`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::Product`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::Product`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn product_by_name(configuration: &configuration::Configuration, name: &str) -> Result<models::Product, Error<ProductByNameError>> { +pub async fn product_by_name( + configuration: &configuration::Configuration, + name: &str, +) -> Result<models::Product, Error<ProductByNameError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_name = name; - let uri_str = format!("{}/product/by-name/{name}", configuration.base_path, name=crate::apis::urlencode(p_path_name)); + let uri_str = format!( + "{}/product/by-name/{name}", + configuration.base_path, + name = crate::apis::urlencode(p_path_name) + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -164,21 +187,40 @@ pub async fn product_by_name(configuration: &configuration::Configuration, name: let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Product`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Product`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::Product`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::Product`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductByNameError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn product_suggestion_by_name(configuration: &configuration::Configuration, name: &str) -> Result<Vec<models::Product>, Error<ProductSuggestionByNameError>> { +pub async fn product_suggestion_by_name( + configuration: &configuration::Configuration, + name: &str, +) -> Result<Vec<models::Product>, Error<ProductSuggestionByNameError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_name = name; - let uri_str = format!("{}/product/by-part-name/{name}", configuration.base_path, name=crate::apis::urlencode(p_path_name)); + let uri_str = format!( + "{}/product/by-part-name/{name}", + configuration.base_path, + name = crate::apis::urlencode(p_path_name) + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -200,22 +242,41 @@ pub async fn product_suggestion_by_name(configuration: &configuration::Configura let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductSuggestionByNameError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will only return products directly associated with this product parent id -pub async fn products_by_product_parent_id_direct(configuration: &configuration::Configuration, id: models::ProductParentId) -> Result<Vec<models::Product>, Error<ProductsByProductParentIdDirectError>> { +pub async fn products_by_product_parent_id_direct( + configuration: &configuration::Configuration, + id: models::ProductParentId, +) -> Result<Vec<models::Product>, Error<ProductsByProductParentIdDirectError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/product/by-product-parent-id-direct/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/product/by-product-parent-id-direct/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -237,22 +298,42 @@ pub async fn products_by_product_parent_id_direct(configuration: &configuration: let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; - let entity: Option<ProductsByProductParentIdDirectError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + let entity: Option<ProductsByProductParentIdDirectError> = + serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will also return all products below this product parent id -pub async fn products_by_product_parent_id_indirect(configuration: &configuration::Configuration, id: models::ProductParentId) -> Result<Vec<models::Product>, Error<ProductsByProductParentIdIndirectError>> { +pub async fn products_by_product_parent_id_indirect( + configuration: &configuration::Configuration, + id: models::ProductParentId, +) -> Result<Vec<models::Product>, Error<ProductsByProductParentIdIndirectError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/product/by-product-parent-id-indirect/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/product/by-product-parent-id-indirect/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -274,18 +355,32 @@ pub async fn products_by_product_parent_id_indirect(configuration: &configuratio let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; - let entity: Option<ProductsByProductParentIdIndirectError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + let entity: Option<ProductsByProductParentIdIndirectError> = + serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn products_in_storage(configuration: &configuration::Configuration, ) -> Result<Vec<models::Product>, Error<ProductsInStorageError>> { - +pub async fn products_in_storage( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Product>, Error<ProductsInStorageError>> { let uri_str = format!("{}/products_in_storage/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -308,18 +403,31 @@ pub async fn products_in_storage(configuration: &configuration::Configuration, ) let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductsInStorageError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn products_registered(configuration: &configuration::Configuration, ) -> Result<Vec<models::Product>, Error<ProductsRegisteredError>> { - +pub async fn products_registered( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Product>, Error<ProductsRegisteredError>> { let uri_str = format!("{}/products_registered/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -342,19 +450,32 @@ pub async fn products_registered(configuration: &configuration::Configuration, ) let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductsRegisteredError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will only return products without a product parent associated with it -pub async fn products_without_product_parent(configuration: &configuration::Configuration, ) -> Result<Vec<models::Product>, Error<ProductsWithoutProductParentError>> { - +pub async fn products_without_product_parent( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Product>, Error<ProductsWithoutProductParentError>> { let uri_str = format!("{}/product/without-product-parent", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -377,13 +498,24 @@ pub async fn products_without_product_parent(configuration: &configuration::Conf let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Product>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Product>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductsWithoutProductParentError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_product_parent_api.rs b/crates/rocie-client/src/apis/api_get_auth_product_parent_api.rs index f244dd1..c087a64 100644 --- a/crates/rocie-client/src/apis/api_get_auth_product_parent_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_product_parent_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`product_parents`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -52,9 +50,9 @@ pub enum ProductParentsUnderError { UnknownValue(serde_json::Value), } - -pub async fn product_parents(configuration: &configuration::Configuration, ) -> Result<Vec<models::ProductParent>, Error<ProductParentsError>> { - +pub async fn product_parents( + configuration: &configuration::Configuration, +) -> Result<Vec<models::ProductParent>, Error<ProductParentsError>> { let uri_str = format!("{}/product_parents/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -77,18 +75,31 @@ pub async fn product_parents(configuration: &configuration::Configuration, ) -> let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductParentsError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn product_parents_toplevel(configuration: &configuration::Configuration, ) -> Result<Vec<models::ProductParent>, Error<ProductParentsToplevelError>> { - +pub async fn product_parents_toplevel( + configuration: &configuration::Configuration, +) -> Result<Vec<models::ProductParent>, Error<ProductParentsToplevelError>> { let uri_str = format!("{}/product_parents_toplevel/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -111,21 +122,40 @@ pub async fn product_parents_toplevel(configuration: &configuration::Configurati let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductParentsToplevelError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn product_parents_under(configuration: &configuration::Configuration, id: models::ProductParentId) -> Result<Vec<models::ProductParent>, Error<ProductParentsUnderError>> { +pub async fn product_parents_under( + configuration: &configuration::Configuration, + id: models::ProductParentId, +) -> Result<Vec<models::ProductParent>, Error<ProductParentsUnderError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/product_parents_under/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/product_parents_under/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -147,13 +177,24 @@ pub async fn product_parents_under(configuration: &configuration::Configuration, let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::ProductParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ProductParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProductParentsUnderError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_recipe_api.rs b/crates/rocie-client/src/apis/api_get_auth_recipe_api.rs index e93ab4e..f74eea5 100644 --- a/crates/rocie-client/src/apis/api_get_auth_recipe_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_recipe_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`recipe_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -83,12 +81,18 @@ pub enum RecipesWithoutRecipeParentError { UnknownValue(serde_json::Value), } - -pub async fn recipe_by_id(configuration: &configuration::Configuration, id: models::RecipeId) -> Result<models::Recipe, Error<RecipeByIdError>> { +pub async fn recipe_by_id( + configuration: &configuration::Configuration, + id: models::RecipeId, +) -> Result<models::Recipe, Error<RecipeByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/recipe/by-id/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/recipe/by-id/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -110,21 +114,40 @@ pub async fn recipe_by_id(configuration: &configuration::Configuration, id: mode let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Recipe`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Recipe`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::Recipe`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::Recipe`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipeByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn recipe_by_name(configuration: &configuration::Configuration, name: &str) -> Result<models::Recipe, Error<RecipeByNameError>> { +pub async fn recipe_by_name( + configuration: &configuration::Configuration, + name: &str, +) -> Result<models::Recipe, Error<RecipeByNameError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_name = name; - let uri_str = format!("{}/recipe/by-name/{name}", configuration.base_path, name=crate::apis::urlencode(p_path_name)); + let uri_str = format!( + "{}/recipe/by-name/{name}", + configuration.base_path, + name = crate::apis::urlencode(p_path_name) + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -146,18 +169,31 @@ pub async fn recipe_by_name(configuration: &configuration::Configuration, name: let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Recipe`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Recipe`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::Recipe`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::Recipe`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipeByNameError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn recipes(configuration: &configuration::Configuration, ) -> Result<Vec<models::Recipe>, Error<RecipesError>> { - +pub async fn recipes( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Recipe>, Error<RecipesError>> { let uri_str = format!("{}/recipe/all", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -180,22 +216,41 @@ pub async fn recipes(configuration: &configuration::Configuration, ) -> Result<V let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipesError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will only return recipes directly associated with this recipe parent id -pub async fn recipes_by_recipe_parent_id_direct(configuration: &configuration::Configuration, id: models::RecipeParentId) -> Result<Vec<models::Recipe>, Error<RecipesByRecipeParentIdDirectError>> { +pub async fn recipes_by_recipe_parent_id_direct( + configuration: &configuration::Configuration, + id: models::RecipeParentId, +) -> Result<Vec<models::Recipe>, Error<RecipesByRecipeParentIdDirectError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/recipe/by-recipe-parent-id-direct/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/recipe/by-recipe-parent-id-direct/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -217,22 +272,42 @@ pub async fn recipes_by_recipe_parent_id_direct(configuration: &configuration::C let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`" + )))); + } } } else { let content = resp.text().await?; - let entity: Option<RecipesByRecipeParentIdDirectError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + let entity: Option<RecipesByRecipeParentIdDirectError> = + serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will also return all recipes below this recipe parent id -pub async fn recipes_by_recipe_parent_id_indirect(configuration: &configuration::Configuration, id: models::RecipeParentId) -> Result<Vec<models::Recipe>, Error<RecipesByRecipeParentIdIndirectError>> { +pub async fn recipes_by_recipe_parent_id_indirect( + configuration: &configuration::Configuration, + id: models::RecipeParentId, +) -> Result<Vec<models::Recipe>, Error<RecipesByRecipeParentIdIndirectError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/recipe/by-recipe-parent-id-indirect/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/recipe/by-recipe-parent-id-indirect/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -254,19 +329,33 @@ pub async fn recipes_by_recipe_parent_id_indirect(configuration: &configuration: let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`" + )))); + } } } else { let content = resp.text().await?; - let entity: Option<RecipesByRecipeParentIdIndirectError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + let entity: Option<RecipesByRecipeParentIdIndirectError> = + serde_json::from_str(&content).ok(); + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This will only return recipes without a recipe parent associated with it -pub async fn recipes_without_recipe_parent(configuration: &configuration::Configuration, ) -> Result<Vec<models::Recipe>, Error<RecipesWithoutRecipeParentError>> { - +pub async fn recipes_without_recipe_parent( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Recipe>, Error<RecipesWithoutRecipeParentError>> { let uri_str = format!("{}/recipe/without-recipe-parent", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -289,13 +378,24 @@ pub async fn recipes_without_recipe_parent(configuration: &configuration::Config let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Recipe>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Recipe>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipesWithoutRecipeParentError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_recipe_parent_api.rs b/crates/rocie-client/src/apis/api_get_auth_recipe_parent_api.rs index 9faf35e..174cc78 100644 --- a/crates/rocie-client/src/apis/api_get_auth_recipe_parent_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_recipe_parent_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`recipe_parents`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -52,9 +50,9 @@ pub enum RecipeParentsUnderError { UnknownValue(serde_json::Value), } - -pub async fn recipe_parents(configuration: &configuration::Configuration, ) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsError>> { - +pub async fn recipe_parents( + configuration: &configuration::Configuration, +) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsError>> { let uri_str = format!("{}/recipe_parents/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -77,18 +75,31 @@ pub async fn recipe_parents(configuration: &configuration::Configuration, ) -> R let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipeParentsError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn recipe_parents_toplevel(configuration: &configuration::Configuration, ) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsToplevelError>> { - +pub async fn recipe_parents_toplevel( + configuration: &configuration::Configuration, +) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsToplevelError>> { let uri_str = format!("{}/recipe_parents_toplevel/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -111,21 +122,40 @@ pub async fn recipe_parents_toplevel(configuration: &configuration::Configuratio let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipeParentsToplevelError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn recipe_parents_under(configuration: &configuration::Configuration, id: models::RecipeParentId) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsUnderError>> { +pub async fn recipe_parents_under( + configuration: &configuration::Configuration, + id: models::RecipeParentId, +) -> Result<Vec<models::RecipeParent>, Error<RecipeParentsUnderError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/recipe_parents_under/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/recipe_parents_under/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -147,13 +177,24 @@ pub async fn recipe_parents_under(configuration: &configuration::Configuration, let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::RecipeParent>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::RecipeParent>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RecipeParentsUnderError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_refined_recipe_api.rs b/crates/rocie-client/src/apis/api_get_auth_refined_recipe_api.rs index 9e73d20..0d5f0f8 100644 --- a/crates/rocie-client/src/apis/api_get_auth_refined_recipe_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_refined_recipe_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`refined_recipe_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -35,12 +33,18 @@ pub enum RefinedRecipeByIdError { UnknownValue(serde_json::Value), } - -pub async fn refined_recipe_by_id(configuration: &configuration::Configuration, id: models::RecipeId) -> Result<models::RefinedRecipe, Error<RefinedRecipeByIdError>> { +pub async fn refined_recipe_by_id( + configuration: &configuration::Configuration, + id: models::RecipeId, +) -> Result<models::RefinedRecipe, Error<RefinedRecipeByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/refined-recipe/by-id/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/refined-recipe/by-id/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -62,13 +66,24 @@ pub async fn refined_recipe_by_id(configuration: &configuration::Configuration, let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RefinedRecipe`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RefinedRecipe`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::RefinedRecipe`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::RefinedRecipe`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RefinedRecipeByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_unit_api.rs b/crates/rocie-client/src/apis/api_get_auth_unit_api.rs index ded03f4..498d77d 100644 --- a/crates/rocie-client/src/apis/api_get_auth_unit_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_unit_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`unit_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -53,12 +51,18 @@ pub enum UnitsByPropertyIdError { UnknownValue(serde_json::Value), } - -pub async fn unit_by_id(configuration: &configuration::Configuration, id: models::UnitId) -> Result<models::Unit, Error<UnitByIdError>> { +pub async fn unit_by_id( + configuration: &configuration::Configuration, + id: models::UnitId, +) -> Result<models::Unit, Error<UnitByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/unit/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/unit/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -80,18 +84,31 @@ pub async fn unit_by_id(configuration: &configuration::Configuration, id: models let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Unit`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Unit`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::Unit`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::Unit`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UnitByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn units(configuration: &configuration::Configuration, ) -> Result<Vec<models::Unit>, Error<UnitsError>> { - +pub async fn units( + configuration: &configuration::Configuration, +) -> Result<Vec<models::Unit>, Error<UnitsError>> { let uri_str = format!("{}/units/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -114,21 +131,40 @@ pub async fn units(configuration: &configuration::Configuration, ) -> Result<Vec let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Unit>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Unit>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Unit>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Unit>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UnitsError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn units_by_property_id(configuration: &configuration::Configuration, id: models::UnitPropertyId) -> Result<Vec<models::Unit>, Error<UnitsByPropertyIdError>> { +pub async fn units_by_property_id( + configuration: &configuration::Configuration, + id: models::UnitPropertyId, +) -> Result<Vec<models::Unit>, Error<UnitsByPropertyIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/units-by-property/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/units-by-property/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -150,13 +186,24 @@ pub async fn units_by_property_id(configuration: &configuration::Configuration, let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::Unit>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Unit>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::Unit>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::Unit>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UnitsByPropertyIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_unit_property_api.rs b/crates/rocie-client/src/apis/api_get_auth_unit_property_api.rs index 76d5e4f..eab0684 100644 --- a/crates/rocie-client/src/apis/api_get_auth_unit_property_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_unit_property_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`unit_properties`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -44,9 +42,9 @@ pub enum UnitPropertyByIdError { UnknownValue(serde_json::Value), } - -pub async fn unit_properties(configuration: &configuration::Configuration, ) -> Result<Vec<models::UnitProperty>, Error<UnitPropertiesError>> { - +pub async fn unit_properties( + configuration: &configuration::Configuration, +) -> Result<Vec<models::UnitProperty>, Error<UnitPropertiesError>> { let uri_str = format!("{}/unit-properties/", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -69,21 +67,40 @@ pub async fn unit_properties(configuration: &configuration::Configuration, ) -> let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::UnitProperty>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::UnitProperty>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::UnitProperty>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::UnitProperty>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UnitPropertiesError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn unit_property_by_id(configuration: &configuration::Configuration, id: models::UnitPropertyId) -> Result<models::UnitProperty, Error<UnitPropertyByIdError>> { +pub async fn unit_property_by_id( + configuration: &configuration::Configuration, + id: models::UnitPropertyId, +) -> Result<models::UnitProperty, Error<UnitPropertyByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/unit-property/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/unit-property/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -105,13 +122,24 @@ pub async fn unit_property_by_id(configuration: &configuration::Configuration, i let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnitProperty`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UnitProperty`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::UnitProperty`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::UnitProperty`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UnitPropertyByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_auth_user_api.rs b/crates/rocie-client/src/apis/api_get_auth_user_api.rs index 97091aa..da4ce28 100644 --- a/crates/rocie-client/src/apis/api_get_auth_user_api.rs +++ b/crates/rocie-client/src/apis/api_get_auth_user_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`user_by_id`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -45,12 +43,18 @@ pub enum UsersError { UnknownValue(serde_json::Value), } - -pub async fn user_by_id(configuration: &configuration::Configuration, id: models::UserId) -> Result<models::User, Error<UserByIdError>> { +pub async fn user_by_id( + configuration: &configuration::Configuration, + id: models::UserId, +) -> Result<models::User, Error<UserByIdError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; - let uri_str = format!("{}/user/{id}", configuration.base_path, id=p_path_id.to_string()); + let uri_str = format!( + "{}/user/{id}", + configuration.base_path, + id = p_path_id.to_string() + ); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); if let Some(ref user_agent) = configuration.user_agent { @@ -72,18 +76,31 @@ pub async fn user_by_id(configuration: &configuration::Configuration, id: models let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::User`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::User`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::User`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::User`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UserByIdError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn users(configuration: &configuration::Configuration, ) -> Result<Vec<models::User>, Error<UsersError>> { - +pub async fn users( + configuration: &configuration::Configuration, +) -> Result<Vec<models::User>, Error<UsersError>> { let uri_str = format!("{}/users", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -106,13 +123,24 @@ pub async fn users(configuration: &configuration::Configuration, ) -> Result<Vec let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::User>`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::User>`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `Vec<models::User>`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `Vec<models::User>`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<UsersError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_get_no_auth_state_api.rs b/crates/rocie-client/src/apis/api_get_no_auth_state_api.rs index 72dadc5..6eb8ad0 100644 --- a/crates/rocie-client/src/apis/api_get_no_auth_state_api.rs +++ b/crates/rocie-client/src/apis/api_get_no_auth_state_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`can_be_provisioned`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -40,9 +38,9 @@ pub enum IsLoggedInError { UnknownValue(serde_json::Value), } - -pub async fn can_be_provisioned(configuration: &configuration::Configuration, ) -> Result<bool, Error<CanBeProvisionedError>> { - +pub async fn can_be_provisioned( + configuration: &configuration::Configuration, +) -> Result<bool, Error<CanBeProvisionedError>> { let uri_str = format!("{}/can-be-provisioned", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -65,18 +63,31 @@ pub async fn can_be_provisioned(configuration: &configuration::Configuration, ) let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `bool`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `bool`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `bool`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `bool`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<CanBeProvisionedError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn is_logged_in(configuration: &configuration::Configuration, ) -> Result<bool, Error<IsLoggedInError>> { - +pub async fn is_logged_in( + configuration: &configuration::Configuration, +) -> Result<bool, Error<IsLoggedInError>> { let uri_str = format!("{}/is-logged-in", configuration.base_path); let mut req_builder = configuration.client.request(reqwest::Method::GET, &uri_str); @@ -99,13 +110,24 @@ pub async fn is_logged_in(configuration: &configuration::Configuration, ) -> Res let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `bool`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `bool`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `bool`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `bool`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<IsLoggedInError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_barcode_api.rs b/crates/rocie-client/src/apis/api_set_auth_barcode_api.rs index 63c4a11..9984ab7 100644 --- a/crates/rocie-client/src/apis/api_set_auth_barcode_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_barcode_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`buy_barcode`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -45,14 +43,24 @@ pub enum ConsumeBarcodeError { UnknownValue(serde_json::Value), } - -pub async fn buy_barcode(configuration: &configuration::Configuration, barcode_id: models::BarcodeId, times: u32) -> Result<(), Error<BuyBarcodeError>> { +pub async fn buy_barcode( + configuration: &configuration::Configuration, + barcode_id: models::BarcodeId, + times: u32, +) -> Result<(), Error<BuyBarcodeError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_barcode_id = barcode_id; let p_path_times = times; - let uri_str = format!("{}/barcode/{barcode_id}/buy/{times}", configuration.base_path, barcode_id=p_path_barcode_id.to_string(), times=p_path_times); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let uri_str = format!( + "{}/barcode/{barcode_id}/buy/{times}", + configuration.base_path, + barcode_id = p_path_barcode_id.to_string(), + times = p_path_times + ); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -68,17 +76,31 @@ pub async fn buy_barcode(configuration: &configuration::Configuration, barcode_i } else { let content = resp.text().await?; let entity: Option<BuyBarcodeError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn consume_barcode(configuration: &configuration::Configuration, id: models::BarcodeId, unit_amount: models::UnitAmount) -> Result<(), Error<ConsumeBarcodeError>> { +pub async fn consume_barcode( + configuration: &configuration::Configuration, + id: models::BarcodeId, + unit_amount: models::UnitAmount, +) -> Result<(), Error<ConsumeBarcodeError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; let p_body_unit_amount = unit_amount; - let uri_str = format!("{}/barcode/{id}/consume", configuration.base_path, id=p_path_id.to_string()); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let uri_str = format!( + "{}/barcode/{id}/consume", + configuration.base_path, + id = p_path_id.to_string() + ); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -95,7 +117,10 @@ pub async fn consume_barcode(configuration: &configuration::Configuration, id: m } else { let content = resp.text().await?; let entity: Option<ConsumeBarcodeError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_product_api.rs b/crates/rocie-client/src/apis/api_set_auth_product_api.rs index ace3ffa..ddfdb66 100644 --- a/crates/rocie-client/src/apis/api_set_auth_product_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_product_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`associate_barcode`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -45,14 +43,23 @@ pub enum RegisterProductError { UnknownValue(serde_json::Value), } - -pub async fn associate_barcode(configuration: &configuration::Configuration, id: models::ProductId, barcode: models::Barcode) -> Result<(), Error<AssociateBarcodeError>> { +pub async fn associate_barcode( + configuration: &configuration::Configuration, + id: models::ProductId, + barcode: models::Barcode, +) -> Result<(), Error<AssociateBarcodeError>> { // add a prefix to parameters to efficiently prevent name collisions let p_path_id = id; let p_body_barcode = barcode; - let uri_str = format!("{}/product/{id}/associate", configuration.base_path, id=p_path_id.to_string()); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let uri_str = format!( + "{}/product/{id}/associate", + configuration.base_path, + id = p_path_id.to_string() + ); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -69,16 +76,25 @@ pub async fn associate_barcode(configuration: &configuration::Configuration, id: } else { let content = resp.text().await?; let entity: Option<AssociateBarcodeError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn register_product(configuration: &configuration::Configuration, product_stub: models::ProductStub) -> Result<models::ProductId, Error<RegisterProductError>> { +pub async fn register_product( + configuration: &configuration::Configuration, + product_stub: models::ProductStub, +) -> Result<models::ProductId, Error<RegisterProductError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_product_stub = product_stub; let uri_str = format!("{}/product/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -100,13 +116,24 @@ pub async fn register_product(configuration: &configuration::Configuration, prod let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ProductId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ProductId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::ProductId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::ProductId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterProductError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_product_parent_api.rs b/crates/rocie-client/src/apis/api_set_auth_product_parent_api.rs index 9524b4d..e51a8d1 100644 --- a/crates/rocie-client/src/apis/api_set_auth_product_parent_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_product_parent_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`register_product_parent`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum RegisterProductParentError { UnknownValue(serde_json::Value), } - -pub async fn register_product_parent(configuration: &configuration::Configuration, product_parent_stub: models::ProductParentStub) -> Result<models::ProductParentId, Error<RegisterProductParentError>> { +pub async fn register_product_parent( + configuration: &configuration::Configuration, + product_parent_stub: models::ProductParentStub, +) -> Result<models::ProductParentId, Error<RegisterProductParentError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_product_parent_stub = product_parent_stub; let uri_str = format!("{}/product_parent/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn register_product_parent(configuration: &configuration::Configuratio let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ProductParentId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ProductParentId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::ProductParentId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::ProductParentId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterProductParentError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_recipe_api.rs b/crates/rocie-client/src/apis/api_set_auth_recipe_api.rs index da57874..589e165 100644 --- a/crates/rocie-client/src/apis/api_set_auth_recipe_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_recipe_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`add_recipe`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum AddRecipeError { UnknownValue(serde_json::Value), } - -pub async fn add_recipe(configuration: &configuration::Configuration, recipe_stub: models::RecipeStub) -> Result<models::RecipeId, Error<AddRecipeError>> { +pub async fn add_recipe( + configuration: &configuration::Configuration, + recipe_stub: models::RecipeStub, +) -> Result<models::RecipeId, Error<AddRecipeError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_recipe_stub = recipe_stub; let uri_str = format!("{}/recipe/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn add_recipe(configuration: &configuration::Configuration, recipe_stu let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RecipeId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RecipeId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::RecipeId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::RecipeId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<AddRecipeError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_recipe_parent_api.rs b/crates/rocie-client/src/apis/api_set_auth_recipe_parent_api.rs index 790a57f..9e1b06b 100644 --- a/crates/rocie-client/src/apis/api_set_auth_recipe_parent_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_recipe_parent_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`register_recipe_parent`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum RegisterRecipeParentError { UnknownValue(serde_json::Value), } - -pub async fn register_recipe_parent(configuration: &configuration::Configuration, recipe_parent_stub: models::RecipeParentStub) -> Result<models::RecipeParentId, Error<RegisterRecipeParentError>> { +pub async fn register_recipe_parent( + configuration: &configuration::Configuration, + recipe_parent_stub: models::RecipeParentStub, +) -> Result<models::RecipeParentId, Error<RegisterRecipeParentError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_recipe_parent_stub = recipe_parent_stub; let uri_str = format!("{}/recipe_parent/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn register_recipe_parent(configuration: &configuration::Configuration let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::RecipeParentId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::RecipeParentId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::RecipeParentId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::RecipeParentId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterRecipeParentError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_unit_api.rs b/crates/rocie-client/src/apis/api_set_auth_unit_api.rs index 5207327..4a4b7cf 100644 --- a/crates/rocie-client/src/apis/api_set_auth_unit_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_unit_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`register_unit`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum RegisterUnitError { UnknownValue(serde_json::Value), } - -pub async fn register_unit(configuration: &configuration::Configuration, unit_stub: models::UnitStub) -> Result<models::UnitId, Error<RegisterUnitError>> { +pub async fn register_unit( + configuration: &configuration::Configuration, + unit_stub: models::UnitStub, +) -> Result<models::UnitId, Error<RegisterUnitError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_unit_stub = unit_stub; let uri_str = format!("{}/unit/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn register_unit(configuration: &configuration::Configuration, unit_st let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnitId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UnitId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::UnitId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::UnitId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterUnitError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_unit_property_api.rs b/crates/rocie-client/src/apis/api_set_auth_unit_property_api.rs index b5e815e..5771670 100644 --- a/crates/rocie-client/src/apis/api_set_auth_unit_property_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_unit_property_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`register_unit_property`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum RegisterUnitPropertyError { UnknownValue(serde_json::Value), } - -pub async fn register_unit_property(configuration: &configuration::Configuration, unit_property_stub: models::UnitPropertyStub) -> Result<models::UnitPropertyId, Error<RegisterUnitPropertyError>> { +pub async fn register_unit_property( + configuration: &configuration::Configuration, + unit_property_stub: models::UnitPropertyStub, +) -> Result<models::UnitPropertyId, Error<RegisterUnitPropertyError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_unit_property_stub = unit_property_stub; let uri_str = format!("{}/unit-property/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn register_unit_property(configuration: &configuration::Configuration let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UnitPropertyId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UnitPropertyId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::UnitPropertyId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::UnitPropertyId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterUnitPropertyError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_auth_user_api.rs b/crates/rocie-client/src/apis/api_set_auth_user_api.rs index 6cad709..3e683d5 100644 --- a/crates/rocie-client/src/apis/api_set_auth_user_api.rs +++ b/crates/rocie-client/src/apis/api_set_auth_user_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`register_user`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -34,13 +32,17 @@ pub enum RegisterUserError { UnknownValue(serde_json::Value), } - -pub async fn register_user(configuration: &configuration::Configuration, user_stub: models::UserStub) -> Result<models::UserId, Error<RegisterUserError>> { +pub async fn register_user( + configuration: &configuration::Configuration, + user_stub: models::UserStub, +) -> Result<models::UserId, Error<RegisterUserError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_user_stub = user_stub; let uri_str = format!("{}/user/new", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -62,13 +64,24 @@ pub async fn register_user(configuration: &configuration::Configuration, user_st let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::UserId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::UserId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<RegisterUserError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/api_set_no_auth_user_api.rs b/crates/rocie-client/src/apis/api_set_no_auth_user_api.rs index 492a2eb..82275cb 100644 --- a/crates/rocie-client/src/apis/api_set_no_auth_user_api.rs +++ b/crates/rocie-client/src/apis/api_set_no_auth_user_api.rs @@ -18,12 +18,10 @@ * Generated by: https://openapi-generator.tech */ - +use super::{ContentType, Error, configuration}; +use crate::{apis::ResponseContent, models}; use reqwest; use serde::{Deserialize, Serialize, de::Error as _}; -use crate::{apis::ResponseContent, models}; -use super::{Error, configuration, ContentType}; - /// struct for typed errors of method [`login`] #[derive(Debug, Clone, Serialize, Deserialize)] @@ -52,13 +50,17 @@ pub enum ProvisionError { UnknownValue(serde_json::Value), } - -pub async fn login(configuration: &configuration::Configuration, login_info: models::LoginInfo) -> Result<(), Error<LoginError>> { +pub async fn login( + configuration: &configuration::Configuration, + login_info: models::LoginInfo, +) -> Result<(), Error<LoginError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_login_info = login_info; let uri_str = format!("{}/login", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -75,14 +77,21 @@ pub async fn login(configuration: &configuration::Configuration, login_info: mod } else { let content = resp.text().await?; let entity: Option<LoginError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } -pub async fn logout(configuration: &configuration::Configuration, ) -> Result<(), Error<LogoutError>> { - +pub async fn logout( + configuration: &configuration::Configuration, +) -> Result<(), Error<LogoutError>> { let uri_str = format!("{}/logout", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -98,17 +107,26 @@ pub async fn logout(configuration: &configuration::Configuration, ) -> Result<() } else { let content = resp.text().await?; let entity: Option<LogoutError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } /// This only works, if no users exist yet. -pub async fn provision(configuration: &configuration::Configuration, provision_info: models::ProvisionInfo) -> Result<models::UserId, Error<ProvisionError>> { +pub async fn provision( + configuration: &configuration::Configuration, + provision_info: models::ProvisionInfo, +) -> Result<models::UserId, Error<ProvisionError>> { // add a prefix to parameters to efficiently prevent name collisions let p_body_provision_info = provision_info; let uri_str = format!("{}/provision", configuration.base_path); - let mut req_builder = configuration.client.request(reqwest::Method::POST, &uri_str); + let mut req_builder = configuration + .client + .request(reqwest::Method::POST, &uri_str); if let Some(ref user_agent) = configuration.user_agent { req_builder = req_builder.header(reqwest::header::USER_AGENT, user_agent.clone()); @@ -130,13 +148,24 @@ pub async fn provision(configuration: &configuration::Configuration, provision_i let content = resp.text().await?; match content_type { ContentType::Json => serde_json::from_str(&content).map_err(Error::from), - ContentType::Text => return Err(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::UserId`"))), - ContentType::Unsupported(unknown_type) => return Err(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::UserId`")))), + ContentType::Text => { + return Err(Error::from(serde_json::Error::custom( + "Received `text/plain` content type response that cannot be converted to `models::UserId`", + ))); + } + ContentType::Unsupported(unknown_type) => { + return Err(Error::from(serde_json::Error::custom(format!( + "Received `{unknown_type}` content type response that cannot be converted to `models::UserId`" + )))); + } } } else { let content = resp.text().await?; let entity: Option<ProvisionError> = serde_json::from_str(&content).ok(); - Err(Error::ResponseError(ResponseContent { status, content, entity })) + Err(Error::ResponseError(ResponseContent { + status, + content, + entity, + })) } } - diff --git a/crates/rocie-client/src/apis/mod.rs b/crates/rocie-client/src/apis/mod.rs index 5d2ccaf..c9d6e65 100644 --- a/crates/rocie-client/src/apis/mod.rs +++ b/crates/rocie-client/src/apis/mod.rs @@ -26,7 +26,7 @@ pub enum Error<T> { ResponseError(ResponseContent<T>), } -impl <T> fmt::Display for Error<T> { +impl<T> fmt::Display for Error<T> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { let (module, e) = match self { Error::Reqwest(e) => ("reqwest", e.to_string()), @@ -38,7 +38,7 @@ impl <T> fmt::Display for Error<T> { } } -impl <T: fmt::Debug> error::Error for Error<T> { +impl<T: fmt::Debug> error::Error for Error<T> { fn source(&self) -> Option<&(dyn error::Error + 'static)> { Some(match self { Error::Reqwest(e) => e, @@ -49,19 +49,19 @@ impl <T: fmt::Debug> error::Error for Error<T> { } } -impl <T> From<reqwest::Error> for Error<T> { +impl<T> From<reqwest::Error> for Error<T> { fn from(e: reqwest::Error) -> Self { Error::Reqwest(e) } } -impl <T> From<serde_json::Error> for Error<T> { +impl<T> From<serde_json::Error> for Error<T> { fn from(e: serde_json::Error) -> Self { Error::Serde(e) } } -impl <T> From<std::io::Error> for Error<T> { +impl<T> From<std::io::Error> for Error<T> { fn from(e: std::io::Error) -> Self { Error::Io(e) } @@ -88,8 +88,10 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String value, )); } - }, - serde_json::Value::String(s) => params.push((format!("{}[{}]", prefix, key), s.clone())), + } + serde_json::Value::String(s) => { + params.push((format!("{}[{}]", prefix, key), s.clone())) + } _ => params.push((format!("{}[{}]", prefix, key), value.to_string())), } } @@ -106,7 +108,7 @@ pub fn parse_deep_object(prefix: &str, value: &serde_json::Value) -> Vec<(String enum ContentType { Json, Text, - Unsupported(String) + Unsupported(String), } impl From<&str> for ContentType { diff --git a/crates/rocie-client/src/implies.rs b/crates/rocie-client/src/implies.rs index cad6179..2649872 100644 --- a/crates/rocie-client/src/implies.rs +++ b/crates/rocie-client/src/implies.rs @@ -11,7 +11,7 @@ use std::fmt::Display; use crate::models::{ - BarcodeId, ProductId, ProductParentId, RecipeId, RecipeParentId, UnitId, UnitPropertyId, UserId + BarcodeId, ProductId, ProductParentId, RecipeId, RecipeParentId, UnitId, UnitPropertyId, UserId, }; // TODO(@bpeetz): The client generator should just do this. <2025-09-23> diff --git a/crates/rocie-client/src/models/barcode.rs b/crates/rocie-client/src/models/barcode.rs index 17afbaf..b8d79d8 100644 --- a/crates/rocie-client/src/models/barcode.rs +++ b/crates/rocie-client/src/models/barcode.rs @@ -31,10 +31,6 @@ pub struct Barcode { impl Barcode { pub fn new(amount: models::UnitAmount, id: models::BarcodeId) -> Barcode { - Barcode { - amount, - id, - } + Barcode { amount, id } } } - diff --git a/crates/rocie-client/src/models/barcode_id.rs b/crates/rocie-client/src/models/barcode_id.rs index c3ebd4b..f1c507a 100644 --- a/crates/rocie-client/src/models/barcode_id.rs +++ b/crates/rocie-client/src/models/barcode_id.rs @@ -29,9 +29,6 @@ pub struct BarcodeId { impl BarcodeId { pub fn new(value: u32) -> BarcodeId { - BarcodeId { - value, - } + BarcodeId { value } } } - diff --git a/crates/rocie-client/src/models/content.rs b/crates/rocie-client/src/models/content.rs index 4b9572f..d9de75d 100644 --- a/crates/rocie-client/src/models/content.rs +++ b/crates/rocie-client/src/models/content.rs @@ -35,4 +35,3 @@ impl Default for Content { Self::ContentOneOf(Default::default()) } } - diff --git a/crates/rocie-client/src/models/content_one_of.rs b/crates/rocie-client/src/models/content_one_of.rs index fe28b38..31dcd9c 100644 --- a/crates/rocie-client/src/models/content_one_of.rs +++ b/crates/rocie-client/src/models/content_one_of.rs @@ -32,9 +32,6 @@ pub struct ContentOneOf { impl ContentOneOf { /// A step pub fn new(step: models::Step) -> ContentOneOf { - ContentOneOf { - step, - } + ContentOneOf { step } } } - diff --git a/crates/rocie-client/src/models/content_one_of_1.rs b/crates/rocie-client/src/models/content_one_of_1.rs index 07bf3a1..e490f06 100644 --- a/crates/rocie-client/src/models/content_one_of_1.rs +++ b/crates/rocie-client/src/models/content_one_of_1.rs @@ -32,9 +32,6 @@ pub struct ContentOneOf1 { impl ContentOneOf1 { /// A paragraph of just text, no instructions pub fn new(text: String) -> ContentOneOf1 { - ContentOneOf1 { - text, - } + ContentOneOf1 { text } } } - 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 { } } } - diff --git a/crates/rocie-client/src/models/cookware.rs b/crates/rocie-client/src/models/cookware.rs index 4eb7856..d4ae55e 100644 --- a/crates/rocie-client/src/models/cookware.rs +++ b/crates/rocie-client/src/models/cookware.rs @@ -49,4 +49,3 @@ impl Cookware { } } } - diff --git a/crates/rocie-client/src/models/ingredient.rs b/crates/rocie-client/src/models/ingredient.rs index 8727335..5371298 100644 --- a/crates/rocie-client/src/models/ingredient.rs +++ b/crates/rocie-client/src/models/ingredient.rs @@ -36,4 +36,3 @@ impl Default for Ingredient { Self::IngredientOneOf(Default::default()) } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of.rs b/crates/rocie-client/src/models/ingredient_one_of.rs index 7b649fa..732c390 100644 --- a/crates/rocie-client/src/models/ingredient_one_of.rs +++ b/crates/rocie-client/src/models/ingredient_one_of.rs @@ -31,9 +31,6 @@ pub struct IngredientOneOf { impl IngredientOneOf { /// This ingredient is a registered product. pub fn new(registered_product: models::IngredientOneOfRegisteredProduct) -> IngredientOneOf { - IngredientOneOf { - registered_product, - } + IngredientOneOf { registered_product } } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of_1.rs b/crates/rocie-client/src/models/ingredient_one_of_1.rs index cf84019..8ed99db 100644 --- a/crates/rocie-client/src/models/ingredient_one_of_1.rs +++ b/crates/rocie-client/src/models/ingredient_one_of_1.rs @@ -30,10 +30,11 @@ pub struct IngredientOneOf1 { impl IngredientOneOf1 { /// This ingredient is a not yet registered product. - pub fn new(not_registered_product: models::IngredientOneOf1NotRegisteredProduct) -> IngredientOneOf1 { + pub fn new( + not_registered_product: models::IngredientOneOf1NotRegisteredProduct, + ) -> IngredientOneOf1 { IngredientOneOf1 { not_registered_product, } } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of_1_not_registered_product.rs b/crates/rocie-client/src/models/ingredient_one_of_1_not_registered_product.rs index 65032c4..ce93005 100644 --- a/crates/rocie-client/src/models/ingredient_one_of_1_not_registered_product.rs +++ b/crates/rocie-client/src/models/ingredient_one_of_1_not_registered_product.rs @@ -40,4 +40,3 @@ impl IngredientOneOf1NotRegisteredProduct { } } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of_2.rs b/crates/rocie-client/src/models/ingredient_one_of_2.rs index f83d3b5..12e270a 100644 --- a/crates/rocie-client/src/models/ingredient_one_of_2.rs +++ b/crates/rocie-client/src/models/ingredient_one_of_2.rs @@ -31,9 +31,6 @@ pub struct IngredientOneOf2 { impl IngredientOneOf2 { /// This ingredient is a reference to another recipe. pub fn new(recipe_reference: models::IngredientOneOf2RecipeReference) -> IngredientOneOf2 { - IngredientOneOf2 { - recipe_reference, - } + IngredientOneOf2 { recipe_reference } } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of_2_recipe_reference.rs b/crates/rocie-client/src/models/ingredient_one_of_2_recipe_reference.rs index 9771484..c22d376 100644 --- a/crates/rocie-client/src/models/ingredient_one_of_2_recipe_reference.rs +++ b/crates/rocie-client/src/models/ingredient_one_of_2_recipe_reference.rs @@ -31,9 +31,6 @@ pub struct IngredientOneOf2RecipeReference { impl IngredientOneOf2RecipeReference { /// This ingredient is a reference to another recipe. pub fn new(id: models::RecipeId) -> IngredientOneOf2RecipeReference { - IngredientOneOf2RecipeReference { - id, - } + IngredientOneOf2RecipeReference { id } } } - diff --git a/crates/rocie-client/src/models/ingredient_one_of_registered_product.rs b/crates/rocie-client/src/models/ingredient_one_of_registered_product.rs index ea1a6b9..d7ab092 100644 --- a/crates/rocie-client/src/models/ingredient_one_of_registered_product.rs +++ b/crates/rocie-client/src/models/ingredient_one_of_registered_product.rs @@ -44,4 +44,3 @@ impl IngredientOneOfRegisteredProduct { } } } - diff --git a/crates/rocie-client/src/models/item.rs b/crates/rocie-client/src/models/item.rs index 87fe3f2..48a726d 100644 --- a/crates/rocie-client/src/models/item.rs +++ b/crates/rocie-client/src/models/item.rs @@ -38,4 +38,3 @@ impl Default for Item { Self::ItemOneOf(Default::default()) } } - diff --git a/crates/rocie-client/src/models/item_one_of.rs b/crates/rocie-client/src/models/item_one_of.rs index 98bb8a8..a802e4d 100644 --- a/crates/rocie-client/src/models/item_one_of.rs +++ b/crates/rocie-client/src/models/item_one_of.rs @@ -31,9 +31,6 @@ pub struct ItemOneOf { impl ItemOneOf { /// Just plain text pub fn new(text: models::ItemOneOfText) -> ItemOneOf { - ItemOneOf { - text, - } + ItemOneOf { text } } } - diff --git a/crates/rocie-client/src/models/item_one_of_1.rs b/crates/rocie-client/src/models/item_one_of_1.rs index 5e0fe37..f1d26f6 100644 --- a/crates/rocie-client/src/models/item_one_of_1.rs +++ b/crates/rocie-client/src/models/item_one_of_1.rs @@ -29,9 +29,6 @@ pub struct ItemOneOf1 { impl ItemOneOf1 { pub fn new(ingredient: models::ItemOneOf1Ingredient) -> ItemOneOf1 { - ItemOneOf1 { - ingredient, - } + ItemOneOf1 { ingredient } } } - diff --git a/crates/rocie-client/src/models/item_one_of_1_ingredient.rs b/crates/rocie-client/src/models/item_one_of_1_ingredient.rs index f31df49..0a2bb8f 100644 --- a/crates/rocie-client/src/models/item_one_of_1_ingredient.rs +++ b/crates/rocie-client/src/models/item_one_of_1_ingredient.rs @@ -29,9 +29,6 @@ pub struct ItemOneOf1Ingredient { impl ItemOneOf1Ingredient { pub fn new(index: u32) -> ItemOneOf1Ingredient { - ItemOneOf1Ingredient { - index, - } + ItemOneOf1Ingredient { index } } } - diff --git a/crates/rocie-client/src/models/item_one_of_2.rs b/crates/rocie-client/src/models/item_one_of_2.rs index cfe7918..31cf4f4 100644 --- a/crates/rocie-client/src/models/item_one_of_2.rs +++ b/crates/rocie-client/src/models/item_one_of_2.rs @@ -29,9 +29,6 @@ pub struct ItemOneOf2 { impl ItemOneOf2 { pub fn new(cookware: models::ItemOneOf1Ingredient) -> ItemOneOf2 { - ItemOneOf2 { - cookware, - } + ItemOneOf2 { cookware } } } - diff --git a/crates/rocie-client/src/models/item_one_of_3.rs b/crates/rocie-client/src/models/item_one_of_3.rs index 0baa898..fd8e8ab 100644 --- a/crates/rocie-client/src/models/item_one_of_3.rs +++ b/crates/rocie-client/src/models/item_one_of_3.rs @@ -29,9 +29,6 @@ pub struct ItemOneOf3 { impl ItemOneOf3 { pub fn new(timer: models::ItemOneOf1Ingredient) -> ItemOneOf3 { - ItemOneOf3 { - timer, - } + ItemOneOf3 { timer } } } - diff --git a/crates/rocie-client/src/models/item_one_of_4.rs b/crates/rocie-client/src/models/item_one_of_4.rs index 69ab303..dcb7d5f 100644 --- a/crates/rocie-client/src/models/item_one_of_4.rs +++ b/crates/rocie-client/src/models/item_one_of_4.rs @@ -29,9 +29,6 @@ pub struct ItemOneOf4 { impl ItemOneOf4 { pub fn new(inline_quantity: models::ItemOneOf1Ingredient) -> ItemOneOf4 { - ItemOneOf4 { - inline_quantity, - } + ItemOneOf4 { inline_quantity } } } - diff --git a/crates/rocie-client/src/models/item_one_of_text.rs b/crates/rocie-client/src/models/item_one_of_text.rs index 9116ac2..4542da4 100644 --- a/crates/rocie-client/src/models/item_one_of_text.rs +++ b/crates/rocie-client/src/models/item_one_of_text.rs @@ -31,9 +31,6 @@ pub struct ItemOneOfText { impl ItemOneOfText { /// Just plain text pub fn new(value: String) -> ItemOneOfText { - ItemOneOfText { - value, - } + ItemOneOfText { value } } } - diff --git a/crates/rocie-client/src/models/login_info.rs b/crates/rocie-client/src/models/login_info.rs index 918c1d7..d03607b 100644 --- a/crates/rocie-client/src/models/login_info.rs +++ b/crates/rocie-client/src/models/login_info.rs @@ -39,4 +39,3 @@ impl LoginInfo { } } } - diff --git a/crates/rocie-client/src/models/metadata.rs b/crates/rocie-client/src/models/metadata.rs index 751cb7d..d4e650a 100644 --- a/crates/rocie-client/src/models/metadata.rs +++ b/crates/rocie-client/src/models/metadata.rs @@ -46,4 +46,3 @@ impl Metadata { } } } - diff --git a/crates/rocie-client/src/models/name_and_url.rs b/crates/rocie-client/src/models/name_and_url.rs index 0628d21..a3c0036 100644 --- a/crates/rocie-client/src/models/name_and_url.rs +++ b/crates/rocie-client/src/models/name_and_url.rs @@ -37,4 +37,3 @@ impl NameAndUrl { } } } - diff --git a/crates/rocie-client/src/models/password_hash.rs b/crates/rocie-client/src/models/password_hash.rs index 46af183..f55a3f4 100644 --- a/crates/rocie-client/src/models/password_hash.rs +++ b/crates/rocie-client/src/models/password_hash.rs @@ -31,9 +31,6 @@ pub struct PasswordHash { impl PasswordHash { /// This is stored as an PHC password string. This type corresponds to the string representation of a PHC string as described in the [PHC string format specification][1]. PHC strings have the following format: ```text $<id>[$v=<version>][$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash>]] ``` pub fn new(value: String) -> PasswordHash { - PasswordHash { - value, - } + PasswordHash { value } } } - diff --git a/crates/rocie-client/src/models/product.rs b/crates/rocie-client/src/models/product.rs index 3b17625..c612567 100644 --- a/crates/rocie-client/src/models/product.rs +++ b/crates/rocie-client/src/models/product.rs @@ -46,7 +46,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, @@ -57,4 +62,3 @@ impl Product { } } } - diff --git a/crates/rocie-client/src/models/product_amount.rs b/crates/rocie-client/src/models/product_amount.rs index 43f968d..59891dd 100644 --- a/crates/rocie-client/src/models/product_amount.rs +++ b/crates/rocie-client/src/models/product_amount.rs @@ -31,10 +31,6 @@ pub struct ProductAmount { impl ProductAmount { pub fn new(amount: models::UnitAmount, product_id: models::ProductId) -> ProductAmount { - ProductAmount { - amount, - product_id, - } + ProductAmount { amount, product_id } } } - diff --git a/crates/rocie-client/src/models/product_id.rs b/crates/rocie-client/src/models/product_id.rs index a82ffc6..e6ca3a5 100644 --- a/crates/rocie-client/src/models/product_id.rs +++ b/crates/rocie-client/src/models/product_id.rs @@ -29,9 +29,6 @@ pub struct ProductId { impl ProductId { pub fn new(value: uuid::Uuid) -> ProductId { - ProductId { - value, - } + ProductId { value } } } - diff --git a/crates/rocie-client/src/models/product_parent.rs b/crates/rocie-client/src/models/product_parent.rs index af08e3a..25c1b7e 100644 --- a/crates/rocie-client/src/models/product_parent.rs +++ b/crates/rocie-client/src/models/product_parent.rs @@ -49,4 +49,3 @@ impl ProductParent { } } } - diff --git a/crates/rocie-client/src/models/product_parent_id.rs b/crates/rocie-client/src/models/product_parent_id.rs index 65b8faf..ae3e4e8 100644 --- a/crates/rocie-client/src/models/product_parent_id.rs +++ b/crates/rocie-client/src/models/product_parent_id.rs @@ -29,9 +29,6 @@ pub struct ProductParentId { impl ProductParentId { pub fn new(value: uuid::Uuid) -> ProductParentId { - ProductParentId { - value, - } + ProductParentId { value } } } - diff --git a/crates/rocie-client/src/models/product_parent_stub.rs b/crates/rocie-client/src/models/product_parent_stub.rs index 729b6d8..1d57c51 100644 --- a/crates/rocie-client/src/models/product_parent_stub.rs +++ b/crates/rocie-client/src/models/product_parent_stub.rs @@ -43,4 +43,3 @@ impl ProductParentStub { } } } - diff --git a/crates/rocie-client/src/models/product_stub.rs b/crates/rocie-client/src/models/product_stub.rs index 477dc4c..49086a7 100644 --- a/crates/rocie-client/src/models/product_stub.rs +++ b/crates/rocie-client/src/models/product_stub.rs @@ -47,4 +47,3 @@ impl ProductStub { } } } - diff --git a/crates/rocie-client/src/models/provision_info.rs b/crates/rocie-client/src/models/provision_info.rs index 4f64fc5..c5d2784 100644 --- a/crates/rocie-client/src/models/provision_info.rs +++ b/crates/rocie-client/src/models/provision_info.rs @@ -32,10 +32,6 @@ pub struct ProvisionInfo { impl ProvisionInfo { pub fn new(use_defaults: bool, user: models::UserStub) -> ProvisionInfo { - ProvisionInfo { - use_defaults, - user, - } + ProvisionInfo { use_defaults, user } } } - diff --git a/crates/rocie-client/src/models/recipe.rs b/crates/rocie-client/src/models/recipe.rs index 78b5ff0..811eba1 100644 --- a/crates/rocie-client/src/models/recipe.rs +++ b/crates/rocie-client/src/models/recipe.rs @@ -49,4 +49,3 @@ impl Recipe { } } } - diff --git a/crates/rocie-client/src/models/recipe_id.rs b/crates/rocie-client/src/models/recipe_id.rs index 9a20c06..6fede8b 100644 --- a/crates/rocie-client/src/models/recipe_id.rs +++ b/crates/rocie-client/src/models/recipe_id.rs @@ -29,9 +29,6 @@ pub struct RecipeId { impl RecipeId { pub fn new(value: uuid::Uuid) -> RecipeId { - RecipeId { - value, - } + RecipeId { value } } } - diff --git a/crates/rocie-client/src/models/recipe_parent.rs b/crates/rocie-client/src/models/recipe_parent.rs index e85e59a..56dc7e5 100644 --- a/crates/rocie-client/src/models/recipe_parent.rs +++ b/crates/rocie-client/src/models/recipe_parent.rs @@ -49,4 +49,3 @@ impl RecipeParent { } } } - diff --git a/crates/rocie-client/src/models/recipe_parent_id.rs b/crates/rocie-client/src/models/recipe_parent_id.rs index 9fdba6e..d78c197 100644 --- a/crates/rocie-client/src/models/recipe_parent_id.rs +++ b/crates/rocie-client/src/models/recipe_parent_id.rs @@ -29,9 +29,6 @@ pub struct RecipeParentId { impl RecipeParentId { pub fn new(value: uuid::Uuid) -> RecipeParentId { - RecipeParentId { - value, - } + RecipeParentId { value } } } - diff --git a/crates/rocie-client/src/models/recipe_parent_stub.rs b/crates/rocie-client/src/models/recipe_parent_stub.rs index 6c6d329..d526fdf 100644 --- a/crates/rocie-client/src/models/recipe_parent_stub.rs +++ b/crates/rocie-client/src/models/recipe_parent_stub.rs @@ -43,4 +43,3 @@ impl RecipeParentStub { } } } - diff --git a/crates/rocie-client/src/models/recipe_stub.rs b/crates/rocie-client/src/models/recipe_stub.rs index 60e448f..3cc2a91 100644 --- a/crates/rocie-client/src/models/recipe_stub.rs +++ b/crates/rocie-client/src/models/recipe_stub.rs @@ -43,4 +43,3 @@ impl RecipeStub { } } } - diff --git a/crates/rocie-client/src/models/refined_recipe.rs b/crates/rocie-client/src/models/refined_recipe.rs index bbb38a0..cec27c2 100644 --- a/crates/rocie-client/src/models/refined_recipe.rs +++ b/crates/rocie-client/src/models/refined_recipe.rs @@ -34,10 +34,6 @@ pub struct RefinedRecipe { 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<models::ProductId>) -> RefinedRecipe { - RefinedRecipe { - id, - ingridients, - } + RefinedRecipe { id, ingridients } } } - diff --git a/crates/rocie-client/src/models/section.rs b/crates/rocie-client/src/models/section.rs index 1160bb9..a457c22 100644 --- a/crates/rocie-client/src/models/section.rs +++ b/crates/rocie-client/src/models/section.rs @@ -41,4 +41,3 @@ impl Section { } } } - diff --git a/crates/rocie-client/src/models/step.rs b/crates/rocie-client/src/models/step.rs index 9dc164f..3ad0367 100644 --- a/crates/rocie-client/src/models/step.rs +++ b/crates/rocie-client/src/models/step.rs @@ -35,10 +35,6 @@ pub struct Step { impl Step { /// A step holding step [`Item`]s pub fn new(items: Vec<models::Item>, number: u32) -> Step { - Step { - items, - number, - } + Step { items, number } } } - diff --git a/crates/rocie-client/src/models/timer.rs b/crates/rocie-client/src/models/timer.rs index 584d483..d2c249a 100644 --- a/crates/rocie-client/src/models/timer.rs +++ b/crates/rocie-client/src/models/timer.rs @@ -41,4 +41,3 @@ impl Timer { } } } - diff --git a/crates/rocie-client/src/models/unit.rs b/crates/rocie-client/src/models/unit.rs index d9e4a1f..336af0c 100644 --- a/crates/rocie-client/src/models/unit.rs +++ b/crates/rocie-client/src/models/unit.rs @@ -44,7 +44,13 @@ pub struct Unit { } impl Unit { - pub fn new(full_name_plural: String, full_name_singular: String, id: models::UnitId, short_name: String, unit_property: models::UnitPropertyId) -> Unit { + pub fn new( + full_name_plural: String, + full_name_singular: String, + id: models::UnitId, + short_name: String, + unit_property: models::UnitPropertyId, + ) -> Unit { Unit { description: None, full_name_plural, @@ -55,4 +61,3 @@ impl Unit { } } } - diff --git a/crates/rocie-client/src/models/unit_amount.rs b/crates/rocie-client/src/models/unit_amount.rs index eb54348..011f1b4 100644 --- a/crates/rocie-client/src/models/unit_amount.rs +++ b/crates/rocie-client/src/models/unit_amount.rs @@ -31,10 +31,6 @@ pub struct UnitAmount { impl UnitAmount { pub fn new(unit: models::UnitId, value: u32) -> UnitAmount { - UnitAmount { - unit, - value, - } + UnitAmount { unit, value } } } - diff --git a/crates/rocie-client/src/models/unit_id.rs b/crates/rocie-client/src/models/unit_id.rs index 99174e5..308e9ff 100644 --- a/crates/rocie-client/src/models/unit_id.rs +++ b/crates/rocie-client/src/models/unit_id.rs @@ -29,9 +29,6 @@ pub struct UnitId { impl UnitId { pub fn new(value: uuid::Uuid) -> UnitId { - UnitId { - value, - } + UnitId { value } } } - diff --git a/crates/rocie-client/src/models/unit_property.rs b/crates/rocie-client/src/models/unit_property.rs index ad051de..6c2b891 100644 --- a/crates/rocie-client/src/models/unit_property.rs +++ b/crates/rocie-client/src/models/unit_property.rs @@ -40,7 +40,11 @@ pub struct UnitProperty { impl UnitProperty { /// An unit property describes a property that can be measured by units. For example velocity, mass or volume. - pub fn new(id: models::UnitPropertyId, name: String, units: Vec<models::UnitId>) -> UnitProperty { + pub fn new( + id: models::UnitPropertyId, + name: String, + units: Vec<models::UnitId>, + ) -> UnitProperty { UnitProperty { description: None, id, @@ -49,4 +53,3 @@ impl UnitProperty { } } } - diff --git a/crates/rocie-client/src/models/unit_property_id.rs b/crates/rocie-client/src/models/unit_property_id.rs index 2063254..e47397b 100644 --- a/crates/rocie-client/src/models/unit_property_id.rs +++ b/crates/rocie-client/src/models/unit_property_id.rs @@ -29,9 +29,6 @@ pub struct UnitPropertyId { impl UnitPropertyId { pub fn new(value: uuid::Uuid) -> UnitPropertyId { - UnitPropertyId { - value, - } + UnitPropertyId { value } } } - diff --git a/crates/rocie-client/src/models/unit_property_stub.rs b/crates/rocie-client/src/models/unit_property_stub.rs index 53ef924..7ff7fad 100644 --- a/crates/rocie-client/src/models/unit_property_stub.rs +++ b/crates/rocie-client/src/models/unit_property_stub.rs @@ -39,4 +39,3 @@ impl UnitPropertyStub { } } } - diff --git a/crates/rocie-client/src/models/unit_stub.rs b/crates/rocie-client/src/models/unit_stub.rs index 422c0a8..e2ed467 100644 --- a/crates/rocie-client/src/models/unit_stub.rs +++ b/crates/rocie-client/src/models/unit_stub.rs @@ -36,7 +36,12 @@ pub struct UnitStub { } impl UnitStub { - pub fn new(full_name_plural: String, full_name_singular: String, short_name: String, unit_property: models::UnitPropertyId) -> UnitStub { + pub fn new( + full_name_plural: String, + full_name_singular: String, + short_name: String, + unit_property: models::UnitPropertyId, + ) -> UnitStub { UnitStub { description: None, full_name_plural, @@ -46,4 +51,3 @@ impl UnitStub { } } } - diff --git a/crates/rocie-client/src/models/user.rs b/crates/rocie-client/src/models/user.rs index e8628b9..a6417b4 100644 --- a/crates/rocie-client/src/models/user.rs +++ b/crates/rocie-client/src/models/user.rs @@ -49,4 +49,3 @@ impl User { } } } - diff --git a/crates/rocie-client/src/models/user_id.rs b/crates/rocie-client/src/models/user_id.rs index c9c8e21..3b690c1 100644 --- a/crates/rocie-client/src/models/user_id.rs +++ b/crates/rocie-client/src/models/user_id.rs @@ -29,9 +29,6 @@ pub struct UserId { impl UserId { pub fn new(value: uuid::Uuid) -> UserId { - UserId { - value, - } + UserId { value } } } - diff --git a/crates/rocie-client/src/models/user_stub.rs b/crates/rocie-client/src/models/user_stub.rs index b3ce91b..d8ed8c2 100644 --- a/crates/rocie-client/src/models/user_stub.rs +++ b/crates/rocie-client/src/models/user_stub.rs @@ -43,4 +43,3 @@ impl UserStub { } } } - |
