From 70976e5c3d486cd27f5187c684fb14a634f4f820 Mon Sep 17 00:00:00 2001 From: Artem Medvedev Date: Wed, 21 Feb 2024 04:40:41 +0100 Subject: [PATCH] Revert "fix broken imports in structs" This reverts commit 53d32d78d78031175c38118e9f802520faac4f9f. --- .../codegen/languages/RustClientCodegen.java | 65 +------------------ .../main/resources/rust/hyper/api.mustache | 1 + .../src/main/resources/rust/model.mustache | 2 + .../main/resources/rust/reqwest/api.mustache | 2 +- .../hyper/composed-oneof/docs/DefaultApi.md | 4 +- .../composed-oneof/src/apis/default_api.rs | 5 +- .../src/models/create_state_request.rs | 6 +- .../custom_one_of_array_schema_inner.rs | 8 ++- .../src/models/custom_one_of_schema.rs | 6 +- .../src/models/get_state_200_response.rs | 8 ++- .../hyper/composed-oneof/src/models/obj_a.rs | 2 + .../hyper/composed-oneof/src/models/obj_b.rs | 2 + .../hyper/composed-oneof/src/models/obj_c.rs | 2 + .../hyper/composed-oneof/src/models/obj_d.rs | 2 + .../rust/hyper/emptyObject/docs/DefaultApi.md | 4 +- .../hyper/emptyObject/src/apis/default_api.rs | 5 +- .../emptyObject/src/models/empty_object.rs | 2 + .../hyper/oneOf-array-map/docs/DefaultApi.md | 4 +- .../rust/hyper/oneOf-array-map/docs/Fruit.md | 4 +- .../oneOf-array-map/src/apis/default_api.rs | 5 +- .../hyper/oneOf-array-map/src/models/apple.rs | 2 + .../hyper/oneOf-array-map/src/models/fruit.rs | 8 ++- .../hyper/oneOf-array-map/src/models/grape.rs | 2 + .../others/rust/hyper/oneOf/docs/Bar.md | 2 +- .../others/rust/hyper/oneOf/docs/BarApi.md | 4 +- .../others/rust/hyper/oneOf/docs/BarCreate.md | 2 +- .../others/rust/hyper/oneOf/docs/FooApi.md | 8 +-- .../rust/hyper/oneOf/src/apis/bar_api.rs | 5 +- .../rust/hyper/oneOf/src/apis/foo_api.rs | 9 +-- .../hyper/oneOf/src/models/addressable.rs | 2 + .../rust/hyper/oneOf/src/models/apple.rs | 2 + .../rust/hyper/oneOf/src/models/banana.rs | 2 + .../others/rust/hyper/oneOf/src/models/bar.rs | 4 +- .../rust/hyper/oneOf/src/models/bar_create.rs | 4 +- .../rust/hyper/oneOf/src/models/bar_ref.rs | 2 + .../oneOf/src/models/bar_ref_or_value.rs | 6 +- .../rust/hyper/oneOf/src/models/entity.rs | 2 + .../rust/hyper/oneOf/src/models/entity_ref.rs | 2 + .../rust/hyper/oneOf/src/models/extensible.rs | 2 + .../others/rust/hyper/oneOf/src/models/foo.rs | 2 + .../rust/hyper/oneOf/src/models/foo_ref.rs | 2 + .../oneOf/src/models/foo_ref_or_value.rs | 6 +- .../rust/hyper/oneOf/src/models/fruit.rs | 6 +- .../rust/hyper/oneOf/src/models/fruit_type.rs | 2 + .../rust/hyper/oneOf/src/models/pasta.rs | 2 + .../rust/hyper/oneOf/src/models/pizza.rs | 2 + .../hyper/oneOf/src/models/pizza_speziale.rs | 2 + .../docs/DefaultApi.md | 4 +- .../src/apis/default_api.rs | 4 +- .../src/models/parent.rs | 2 + .../reqwest/composed-oneof/docs/DefaultApi.md | 4 +- .../composed-oneof/src/apis/default_api.rs | 4 +- .../src/models/create_state_request.rs | 6 +- .../custom_one_of_array_schema_inner.rs | 8 ++- .../src/models/custom_one_of_schema.rs | 6 +- .../src/models/get_state_200_response.rs | 8 ++- .../composed-oneof/src/models/obj_a.rs | 2 + .../composed-oneof/src/models/obj_b.rs | 2 + .../composed-oneof/src/models/obj_c.rs | 2 + .../composed-oneof/src/models/obj_d.rs | 2 + .../reqwest/emptyObject/docs/DefaultApi.md | 4 +- .../emptyObject/src/apis/default_api.rs | 4 +- .../emptyObject/src/models/empty_object.rs | 2 + .../oneOf-array-map/docs/DefaultApi.md | 4 +- .../reqwest/oneOf-array-map/docs/Fruit.md | 4 +- .../oneOf-array-map/src/apis/default_api.rs | 4 +- .../oneOf-array-map/src/models/apple.rs | 2 + .../oneOf-array-map/src/models/fruit.rs | 8 ++- .../oneOf-array-map/src/models/grape.rs | 2 + .../others/rust/reqwest/oneOf/docs/Bar.md | 2 +- .../others/rust/reqwest/oneOf/docs/BarApi.md | 4 +- .../rust/reqwest/oneOf/docs/BarCreate.md | 2 +- .../others/rust/reqwest/oneOf/docs/FooApi.md | 8 +-- .../rust/reqwest/oneOf/src/apis/bar_api.rs | 4 +- .../rust/reqwest/oneOf/src/apis/foo_api.rs | 6 +- .../reqwest/oneOf/src/models/addressable.rs | 2 + .../rust/reqwest/oneOf/src/models/apple.rs | 2 + .../rust/reqwest/oneOf/src/models/banana.rs | 2 + .../rust/reqwest/oneOf/src/models/bar.rs | 4 +- .../reqwest/oneOf/src/models/bar_create.rs | 4 +- .../rust/reqwest/oneOf/src/models/bar_ref.rs | 2 + .../oneOf/src/models/bar_ref_or_value.rs | 6 +- .../rust/reqwest/oneOf/src/models/entity.rs | 2 + .../reqwest/oneOf/src/models/entity_ref.rs | 2 + .../reqwest/oneOf/src/models/extensible.rs | 2 + .../rust/reqwest/oneOf/src/models/foo.rs | 2 + .../rust/reqwest/oneOf/src/models/foo_ref.rs | 2 + .../oneOf/src/models/foo_ref_or_value.rs | 6 +- .../rust/reqwest/oneOf/src/models/fruit.rs | 6 +- .../reqwest/oneOf/src/models/fruit_type.rs | 2 + .../rust/reqwest/oneOf/src/models/pasta.rs | 2 + .../rust/reqwest/oneOf/src/models/pizza.rs | 2 + .../oneOf/src/models/pizza_speziale.rs | 2 + .../hyper/petstore/docs/ActionContainer.md | 2 +- .../hyper/petstore/docs/ArrayItemRefTest.md | 4 +- .../petstore/rust/hyper/petstore/docs/Pet.md | 4 +- .../rust/hyper/petstore/docs/PetApi.md | 24 +++---- .../rust/hyper/petstore/docs/StoreApi.md | 8 +-- .../rust/hyper/petstore/docs/TestingApi.md | 4 +- .../rust/hyper/petstore/docs/UserApi.md | 8 +-- .../rust/hyper/petstore/src/apis/fake_api.rs | 1 + .../rust/hyper/petstore/src/apis/pet_api.rs | 25 +++---- .../rust/hyper/petstore/src/apis/store_api.rs | 9 +-- .../hyper/petstore/src/apis/testing_api.rs | 5 +- .../rust/hyper/petstore/src/apis/user_api.rs | 13 ++-- .../petstore/src/models/action_container.rs | 6 +- .../hyper/petstore/src/models/api_response.rs | 2 + .../src/models/array_item_ref_test.rs | 8 ++- .../rust/hyper/petstore/src/models/baz.rs | 2 + .../hyper/petstore/src/models/category.rs | 2 + .../petstore/src/models/enum_array_testing.rs | 2 + .../hyper/petstore/src/models/model_return.rs | 2 + .../petstore/src/models/nullable_array.rs | 2 + .../petstore/src/models/optional_testing.rs | 2 + .../rust/hyper/petstore/src/models/order.rs | 2 + .../rust/hyper/petstore/src/models/pet.rs | 6 +- .../petstore/src/models/property_test.rs | 2 + .../rust/hyper/petstore/src/models/tag.rs | 2 + .../hyper/petstore/src/models/type_testing.rs | 2 + .../src/models/unique_item_array_testing.rs | 2 + .../rust/hyper/petstore/src/models/user.rs | 2 + .../reqwest/name-mapping/src/apis/fake_api.rs | 2 +- .../src/models/property_name_mapping.rs | 2 + .../docs/ActionContainer.md | 2 +- .../docs/ArrayItemRefTest.md | 4 +- .../petstore-async-middleware/docs/Pet.md | 4 +- .../petstore-async-middleware/docs/PetApi.md | 24 +++---- .../docs/StoreApi.md | 8 +-- .../docs/TestingApi.md | 4 +- .../petstore-async-middleware/docs/UserApi.md | 8 +-- .../src/apis/fake_api.rs | 2 +- .../src/apis/pet_api.rs | 14 ++-- .../src/apis/store_api.rs | 6 +- .../src/apis/testing_api.rs | 4 +- .../src/apis/user_api.rs | 8 +-- .../src/models/action_container.rs | 6 +- .../src/models/api_response.rs | 2 + .../src/models/array_item_ref_test.rs | 8 ++- .../src/models/baz.rs | 2 + .../src/models/category.rs | 2 + .../src/models/enum_array_testing.rs | 2 + .../src/models/model_return.rs | 2 + .../src/models/nullable_array.rs | 2 + .../src/models/optional_testing.rs | 2 + .../src/models/order.rs | 2 + .../src/models/pet.rs | 6 +- .../src/models/property_test.rs | 2 + .../src/models/tag.rs | 2 + .../src/models/type_testing.rs | 2 + .../src/models/unique_item_array_testing.rs | 2 + .../src/models/user.rs | 2 + .../petstore-async/docs/ActionContainer.md | 2 +- .../petstore-async/docs/ArrayItemRefTest.md | 4 +- .../rust/reqwest/petstore-async/docs/Pet.md | 4 +- .../reqwest/petstore-async/docs/PetApi.md | 24 +++---- .../reqwest/petstore-async/docs/StoreApi.md | 8 +-- .../reqwest/petstore-async/docs/TestingApi.md | 4 +- .../reqwest/petstore-async/docs/UserApi.md | 8 +-- .../petstore-async/src/apis/fake_api.rs | 2 +- .../petstore-async/src/apis/pet_api.rs | 14 ++-- .../petstore-async/src/apis/store_api.rs | 6 +- .../petstore-async/src/apis/testing_api.rs | 4 +- .../petstore-async/src/apis/user_api.rs | 8 +-- .../src/models/action_container.rs | 6 +- .../petstore-async/src/models/api_response.rs | 2 + .../src/models/array_item_ref_test.rs | 8 ++- .../reqwest/petstore-async/src/models/baz.rs | 2 + .../petstore-async/src/models/category.rs | 2 + .../src/models/enum_array_testing.rs | 2 + .../petstore-async/src/models/model_return.rs | 2 + .../src/models/nullable_array.rs | 2 + .../src/models/optional_testing.rs | 2 + .../petstore-async/src/models/order.rs | 2 + .../reqwest/petstore-async/src/models/pet.rs | 6 +- .../src/models/property_test.rs | 2 + .../reqwest/petstore-async/src/models/tag.rs | 2 + .../petstore-async/src/models/type_testing.rs | 2 + .../src/models/unique_item_array_testing.rs | 2 + .../reqwest/petstore-async/src/models/user.rs | 2 + .../docs/ActionContainer.md | 2 +- .../docs/ArrayItemRefTest.md | 4 +- .../petstore-awsv4signature/docs/Pet.md | 4 +- .../petstore-awsv4signature/docs/PetApi.md | 24 +++---- .../petstore-awsv4signature/docs/StoreApi.md | 8 +-- .../docs/TestingApi.md | 4 +- .../petstore-awsv4signature/docs/UserApi.md | 8 +-- .../src/apis/fake_api.rs | 2 +- .../src/apis/pet_api.rs | 14 ++-- .../src/apis/store_api.rs | 6 +- .../src/apis/testing_api.rs | 4 +- .../src/apis/user_api.rs | 8 +-- .../src/models/action_container.rs | 6 +- .../src/models/api_response.rs | 2 + .../src/models/array_item_ref_test.rs | 8 ++- .../petstore-awsv4signature/src/models/baz.rs | 2 + .../src/models/category.rs | 2 + .../src/models/enum_array_testing.rs | 2 + .../src/models/model_return.rs | 2 + .../src/models/nullable_array.rs | 2 + .../src/models/optional_testing.rs | 2 + .../src/models/order.rs | 2 + .../petstore-awsv4signature/src/models/pet.rs | 6 +- .../src/models/property_test.rs | 2 + .../petstore-awsv4signature/src/models/tag.rs | 2 + .../src/models/type_testing.rs | 2 + .../src/models/unique_item_array_testing.rs | 2 + .../src/models/user.rs | 2 + .../reqwest/petstore/docs/ActionContainer.md | 2 +- .../reqwest/petstore/docs/ArrayItemRefTest.md | 4 +- .../rust/reqwest/petstore/docs/Pet.md | 4 +- .../rust/reqwest/petstore/docs/PetApi.md | 24 +++---- .../rust/reqwest/petstore/docs/StoreApi.md | 8 +-- .../rust/reqwest/petstore/docs/TestingApi.md | 4 +- .../rust/reqwest/petstore/docs/UserApi.md | 8 +-- .../reqwest/petstore/src/apis/fake_api.rs | 2 +- .../rust/reqwest/petstore/src/apis/pet_api.rs | 14 ++-- .../reqwest/petstore/src/apis/store_api.rs | 6 +- .../reqwest/petstore/src/apis/testing_api.rs | 4 +- .../reqwest/petstore/src/apis/user_api.rs | 8 +-- .../petstore/src/models/action_container.rs | 6 +- .../petstore/src/models/api_response.rs | 2 + .../src/models/array_item_ref_test.rs | 8 ++- .../rust/reqwest/petstore/src/models/baz.rs | 2 + .../reqwest/petstore/src/models/category.rs | 2 + .../petstore/src/models/enum_array_testing.rs | 2 + .../petstore/src/models/model_return.rs | 2 + .../petstore/src/models/nullable_array.rs | 2 + .../petstore/src/models/optional_testing.rs | 2 + .../rust/reqwest/petstore/src/models/order.rs | 2 + .../rust/reqwest/petstore/src/models/pet.rs | 6 +- .../petstore/src/models/property_test.rs | 2 + .../rust/reqwest/petstore/src/models/tag.rs | 2 + .../petstore/src/models/type_testing.rs | 2 + .../src/models/unique_item_array_testing.rs | 2 + .../rust/reqwest/petstore/src/models/user.rs | 2 + 235 files changed, 664 insertions(+), 428 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java index bcfbedbfc30b..7135f5261789 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/RustClientCodegen.java @@ -61,8 +61,6 @@ public class RustClientCodegen extends AbstractRustCodegen implements CodegenCon public static final String PREFER_UNSIGNED_INT = "preferUnsignedInt"; public static final String BEST_FIT_INT = "bestFitInt"; - private static final String MODELS_MODULE_PREFIX = "crate::models::"; - protected String packageName = "openapi"; protected String packageVersion = "1.0.0"; protected String apiDocPath = "docs/"; @@ -233,8 +231,8 @@ public CodegenModel fromModel(String name, Schema model) { CodegenProperty oneOf = oneOfs.get(i); Schema schema = schemas.get(i); String aliasType = getTypeDeclaration(schema); - if (aliasType.startsWith(MODELS_MODULE_PREFIX)) { - aliasType = aliasType.substring(MODELS_MODULE_PREFIX.length()); + if (aliasType.startsWith("models::")) { + aliasType = aliasType.substring("models::".length()); } if (oneOf.getRef() != null) { oneOf.setBaseName(mappedNameByRef.get(oneOf.getRef())); @@ -439,65 +437,6 @@ public String modelDocFileFolder() { return (outputFolder + "/" + modelDocPath).replace('/', File.separatorChar); } - @Override - public String getTypeDeclaration(Schema p) { - Schema unaliasSchema = unaliasSchema(p); - if (ModelUtils.isArraySchema(unaliasSchema)) { - ArraySchema ap = (ArraySchema) unaliasSchema; - Schema inner = ap.getItems(); - if (inner == null) { - LOGGER.warn("{}(array property) does not have a proper inner type defined.Default to string", - ap.getName()); - inner = new StringSchema().description("TODO default missing array inner type to string"); - } - return typeMapping.get("array") + "<" + getTypeDeclaration(inner) + ">"; - } else if (ModelUtils.isMapSchema(unaliasSchema)) { - Schema inner = ModelUtils.getAdditionalProperties(unaliasSchema); - if (inner == null) { - LOGGER.warn("{}(map property) does not have a proper inner type defined. Default to string", unaliasSchema.getName()); - inner = new StringSchema().description("TODO default missing map inner type to string"); - } - String innerType = getTypeDeclaration(inner); - StringBuilder typeDeclaration = new StringBuilder(typeMapping.get("map")).append("<").append(typeMapping.get("string")).append(", "); - typeDeclaration.append(innerType).append(">"); - return typeDeclaration.toString(); - } else if (!org.apache.commons.lang3.StringUtils.isEmpty(p.get$ref())) { - String datatype; - try { - datatype = p.get$ref(); - - if (datatype.indexOf("#/components/schemas/") == 0) { - datatype = toModelName(datatype.substring("#/components/schemas/".length())); - datatype = MODELS_MODULE_PREFIX + datatype; - } - } catch (Exception e) { - LOGGER.warn("Error obtaining the datatype from schema (model):{}. Datatype default to Object", p); - datatype = "Object"; - LOGGER.error(e.getMessage(), e); - } - return datatype; - } - - // Not using the supertype invocation, because we want to UpperCamelize - // the type. - String schemaType = getSchemaType(unaliasSchema); - if (typeMapping.containsKey(schemaType)) { - return typeMapping.get(schemaType); - } - - if (typeMapping.containsValue(schemaType)) { - return schemaType; - } - - if (languageSpecificPrimitives.contains(schemaType)) { - return schemaType; - } - - // return fully-qualified model name - // crate::models::{{classnameFile}}::{{classname}} - return MODELS_MODULE_PREFIX + toModelName(schemaType); - } - @Override public String getSchemaType(Schema p) { String schemaType = super.getSchemaType(p); diff --git a/modules/openapi-generator/src/main/resources/rust/hyper/api.mustache b/modules/openapi-generator/src/main/resources/rust/hyper/api.mustache index dffab3ce8a7a..57d9e9af5c8b 100644 --- a/modules/openapi-generator/src/main/resources/rust/hyper/api.mustache +++ b/modules/openapi-generator/src/main/resources/rust/hyper/api.mustache @@ -8,6 +8,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; diff --git a/modules/openapi-generator/src/main/resources/rust/model.mustache b/modules/openapi-generator/src/main/resources/rust/model.mustache index b10fd3b71391..4bb93ff6e967 100644 --- a/modules/openapi-generator/src/main/resources/rust/model.mustache +++ b/modules/openapi-generator/src/main/resources/rust/model.mustache @@ -1,3 +1,5 @@ +use crate::models; + {{>partial_header}} {{#models}} {{#model}} diff --git a/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache b/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache index 9f22af896d95..44cae73cbaa5 100644 --- a/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache +++ b/modules/openapi-generator/src/main/resources/rust/reqwest/api.mustache @@ -2,7 +2,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; {{#operations}} diff --git a/samples/client/others/rust/hyper/composed-oneof/docs/DefaultApi.md b/samples/client/others/rust/hyper/composed-oneof/docs/DefaultApi.md index 65ae82fdec7a..c672b00c0648 100644 --- a/samples/client/others/rust/hyper/composed-oneof/docs/DefaultApi.md +++ b/samples/client/others/rust/hyper/composed-oneof/docs/DefaultApi.md @@ -39,7 +39,7 @@ No authorization required ## get_state -> crate::models::GetState200Response get_state() +> models::GetState200Response get_state() ### Parameters @@ -48,7 +48,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::GetState200Response**](getState_200_response.md) +[**models::GetState200Response**](getState_200_response.md) ### Authorization diff --git a/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs b/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs index 19ded47e2b5e..2a1f81b06bf6 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -36,7 +37,7 @@ impl DefaultApiClient pub trait DefaultApi { fn create_state(&self, create_state_request: crate::models::CreateStateRequest) -> Pin>>>; - fn get_state(&self, ) -> Pin>>>; + fn get_state(&self, ) -> Pin>>>; } implDefaultApi for DefaultApiClient @@ -52,7 +53,7 @@ implDefaultApi for DefaultApiClient } #[allow(unused_mut)] - fn get_state(&self, ) -> Pin>>> { + fn get_state(&self, ) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/state".to_string()) ; diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/create_state_request.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/create_state_request.rs index 16e618805baa..751362a22d5d 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/create_state_request.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/create_state_request.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,9 +16,9 @@ #[serde(tag = "realtype")] pub enum CreateStateRequest { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), } impl Default for CreateStateRequest { diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_array_schema_inner.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_array_schema_inner.rs index 4180b8a0de01..255030da6686 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_array_schema_inner.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_array_schema_inner.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,11 +16,11 @@ #[serde(tag = "realtype")] pub enum CustomOneOfArraySchemaInner { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), #[serde(rename="c-type")] - ObjC(Box), + ObjC(Box), } impl Default for CustomOneOfArraySchemaInner { diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_schema.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_schema.rs index 6c1eaeb6231f..0bddc69a829a 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_schema.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/custom_one_of_schema.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,9 +16,9 @@ #[serde(tag = "realtype")] pub enum CustomOneOfSchema { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), } impl Default for CustomOneOfSchema { diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/get_state_200_response.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/get_state_200_response.rs index 64fd37db1d84..b87bf89b7627 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/get_state_200_response.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/get_state_200_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,11 +16,11 @@ #[serde(tag = "realtype")] pub enum GetState200Response { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), #[serde(rename="d-type")] - ObjD(Box), + ObjD(Box), } impl Default for GetState200Response { diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_a.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_a.rs index dc265f948346..bfcbfb3028c8 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_a.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_a.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_b.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_b.rs index 0f664efd8bca..d905bb9722e3 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_b.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_b.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_c.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_c.rs index 5aa6635e959c..b550e8d8fa00 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_c.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_c.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_d.rs b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_d.rs index 58101e561a84..f8cefe33c74b 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/models/obj_d.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/models/obj_d.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/hyper/emptyObject/docs/DefaultApi.md b/samples/client/others/rust/hyper/emptyObject/docs/DefaultApi.md index f0692c00673d..84f570faefd3 100644 --- a/samples/client/others/rust/hyper/emptyObject/docs/DefaultApi.md +++ b/samples/client/others/rust/hyper/emptyObject/docs/DefaultApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## endpoint_get -> crate::models::EmptyObject endpoint_get() +> models::EmptyObject endpoint_get() Get endpoint ### Parameters @@ -19,7 +19,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::EmptyObject**](EmptyObject.md) +[**models::EmptyObject**](EmptyObject.md) ### Authorization diff --git a/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs b/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs index a1ea2c0cf6fa..1ad9fa3768e7 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -35,13 +36,13 @@ impl DefaultApiClient } pub trait DefaultApi { - fn endpoint_get(&self, ) -> Pin>>>; + fn endpoint_get(&self, ) -> Pin>>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn endpoint_get(&self, ) -> Pin>>> { + fn endpoint_get(&self, ) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/endpoint".to_string()) ; diff --git a/samples/client/others/rust/hyper/emptyObject/src/models/empty_object.rs b/samples/client/others/rust/hyper/emptyObject/src/models/empty_object.rs index cf42c3a6922f..06e27f51fcbc 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/models/empty_object.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/models/empty_object.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * EmptyObject * diff --git a/samples/client/others/rust/hyper/oneOf-array-map/docs/DefaultApi.md b/samples/client/others/rust/hyper/oneOf-array-map/docs/DefaultApi.md index 1e0883f8be14..d71db693a606 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/docs/DefaultApi.md +++ b/samples/client/others/rust/hyper/oneOf-array-map/docs/DefaultApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## root_get -> crate::models::Fruit root_get() +> models::Fruit root_get() ### Parameters @@ -20,7 +20,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::Fruit**](fruit.md) +[**models::Fruit**](fruit.md) ### Authorization diff --git a/samples/client/others/rust/hyper/oneOf-array-map/docs/Fruit.md b/samples/client/others/rust/hyper/oneOf-array-map/docs/Fruit.md index 4d45a65c199b..02d10609d0ae 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/docs/Fruit.md +++ b/samples/client/others/rust/hyper/oneOf-array-map/docs/Fruit.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| Vec | | -| std::collections::HashMap | | +| Vec | | +| std::collections::HashMap | | [[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/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs index 2accd6d2ecd7..90082edd0eed 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -35,14 +36,14 @@ impl DefaultApiClient } pub trait DefaultApi { - fn root_get(&self, ) -> Pin>>>; + fn root_get(&self, ) -> Pin>>>; fn test(&self, body: Option) -> Pin>>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn root_get(&self, ) -> Pin>>> { + fn root_get(&self, ) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/".to_string()) ; diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/models/apple.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/models/apple.rs index 0f7442a04257..2df6d0e08e59 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/models/apple.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/models/apple.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/models/fruit.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/models/fruit.rs index f6431a6d9715..2247f085851e 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/models/fruit.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/models/fruit.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * @@ -14,13 +16,13 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum Fruit { - std::collections::HashMap(Box>), - Vec(Box>), + Apples(Box>), + Grapes(Box>), } impl Default for Fruit { fn default() -> Self { - Self::std::collections::HashMap(Box::default()) + Self::Apples(Box::default()) } } diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/models/grape.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/models/grape.rs index 3673af1fb9f5..86ead6847095 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/models/grape.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/models/grape.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * diff --git a/samples/client/others/rust/hyper/oneOf/docs/Bar.md b/samples/client/others/rust/hyper/oneOf/docs/Bar.md index e923f9d0dfb4..188b551a0f92 100644 --- a/samples/client/others/rust/hyper/oneOf/docs/Bar.md +++ b/samples/client/others/rust/hyper/oneOf/docs/Bar.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **String** | | **bar_prop_a** | Option<**String**> | | [optional] **foo_prop_b** | Option<**String**> | | [optional] -**foo** | Option<[**crate::models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] +**foo** | Option<[**models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] **href** | Option<**String**> | Hyperlink reference | [optional] **at_schema_location** | Option<**String**> | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] **at_base_type** | Option<**String**> | When sub-classing, this defines the super-class | [optional] diff --git a/samples/client/others/rust/hyper/oneOf/docs/BarApi.md b/samples/client/others/rust/hyper/oneOf/docs/BarApi.md index 13cec7905323..76d66d2941c3 100644 --- a/samples/client/others/rust/hyper/oneOf/docs/BarApi.md +++ b/samples/client/others/rust/hyper/oneOf/docs/BarApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## create_bar -> crate::models::Bar create_bar(bar_create) +> models::Bar create_bar(bar_create) Create a Bar ### Parameters @@ -22,7 +22,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Bar**](Bar.md) +[**models::Bar**](Bar.md) ### Authorization diff --git a/samples/client/others/rust/hyper/oneOf/docs/BarCreate.md b/samples/client/others/rust/hyper/oneOf/docs/BarCreate.md index 47eb6b9c3bef..f03857dc29b8 100644 --- a/samples/client/others/rust/hyper/oneOf/docs/BarCreate.md +++ b/samples/client/others/rust/hyper/oneOf/docs/BarCreate.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bar_prop_a** | Option<**String**> | | [optional] **foo_prop_b** | Option<**String**> | | [optional] -**foo** | Option<[**crate::models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] +**foo** | Option<[**models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] **href** | Option<**String**> | Hyperlink reference | [optional] **id** | Option<**String**> | unique identifier | [optional] **at_schema_location** | Option<**String**> | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] diff --git a/samples/client/others/rust/hyper/oneOf/docs/FooApi.md b/samples/client/others/rust/hyper/oneOf/docs/FooApi.md index 459ccef2909f..072a13344429 100644 --- a/samples/client/others/rust/hyper/oneOf/docs/FooApi.md +++ b/samples/client/others/rust/hyper/oneOf/docs/FooApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## create_foo -> crate::models::FooRefOrValue create_foo(foo) +> models::FooRefOrValue create_foo(foo) Create a Foo ### Parameters @@ -23,7 +23,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::FooRefOrValue**](FooRefOrValue.md) +[**models::FooRefOrValue**](FooRefOrValue.md) ### Authorization @@ -39,7 +39,7 @@ No authorization required ## get_all_foos -> Vec get_all_foos() +> Vec get_all_foos() GET all Foos ### Parameters @@ -48,7 +48,7 @@ This endpoint does not need any parameter. ### Return type -[**Vec**](FooRefOrValue.md) +[**Vec**](FooRefOrValue.md) ### Authorization diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs b/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs index 9d0d838b95a4..e3d76e9197f7 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -35,13 +36,13 @@ impl BarApiClient } pub trait BarApi { - fn create_bar(&self, bar_create: crate::models::BarCreate) -> Pin>>>; + fn create_bar(&self, bar_create: crate::models::BarCreate) -> Pin>>>; } implBarApi for BarApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_bar(&self, bar_create: crate::models::BarCreate) -> Pin>>> { + fn create_bar(&self, bar_create: crate::models::BarCreate) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/bar".to_string()) ; req = req.with_body_param(bar_create); diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs b/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs index e9ac63e81ee8..abea506ea5b0 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -35,14 +36,14 @@ impl FooApiClient } pub trait FooApi { - fn create_foo(&self, foo: Option) -> Pin>>>; - fn get_all_foos(&self, ) -> Pin, Error>>>>; + fn create_foo(&self, foo: Option) -> Pin>>>; + fn get_all_foos(&self, ) -> Pin, Error>>>>; } implFooApi for FooApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_foo(&self, foo: Option) -> Pin>>> { + fn create_foo(&self, foo: Option) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/foo".to_string()) ; req = req.with_body_param(foo); @@ -51,7 +52,7 @@ implFooApi for FooApiClient } #[allow(unused_mut)] - fn get_all_foos(&self, ) -> Pin, Error>>>> { + fn get_all_foos(&self, ) -> Pin, Error>>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/foo".to_string()) ; diff --git a/samples/client/others/rust/hyper/oneOf/src/models/addressable.rs b/samples/client/others/rust/hyper/oneOf/src/models/addressable.rs index 1110f9bd0aa5..d365468f53c0 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/addressable.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/addressable.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/apple.rs b/samples/client/others/rust/hyper/oneOf/src/models/apple.rs index dd244a933f1b..6c17e35c43bd 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/apple.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/apple.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/banana.rs b/samples/client/others/rust/hyper/oneOf/src/models/banana.rs index 8330cc76c6c1..61cbcfddce28 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/banana.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/banana.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/bar.rs b/samples/client/others/rust/hyper/oneOf/src/models/bar.rs index 0d25ee987774..0a4b4d517171 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/bar.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/bar.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -20,7 +22,7 @@ pub struct Bar { #[serde(rename = "fooPropB", skip_serializing_if = "Option::is_none")] pub foo_prop_b: Option, #[serde(rename = "foo", skip_serializing_if = "Option::is_none")] - pub foo: Option>, + pub foo: Option>, /// Hyperlink reference #[serde(rename = "href", skip_serializing_if = "Option::is_none")] pub href: Option, diff --git a/samples/client/others/rust/hyper/oneOf/src/models/bar_create.rs b/samples/client/others/rust/hyper/oneOf/src/models/bar_create.rs index 950642d7dce3..0c5a4120fa5d 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/bar_create.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/bar_create.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -18,7 +20,7 @@ pub struct BarCreate { #[serde(rename = "fooPropB", skip_serializing_if = "Option::is_none")] pub foo_prop_b: Option, #[serde(rename = "foo", skip_serializing_if = "Option::is_none")] - pub foo: Option>, + pub foo: Option>, /// Hyperlink reference #[serde(rename = "href", skip_serializing_if = "Option::is_none")] pub href: Option, diff --git a/samples/client/others/rust/hyper/oneOf/src/models/bar_ref.rs b/samples/client/others/rust/hyper/oneOf/src/models/bar_ref.rs index 9c671a320c03..fbd547e391e2 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/bar_ref.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/bar_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/bar_ref_or_value.rs b/samples/client/others/rust/hyper/oneOf/src/models/bar_ref_or_value.rs index 003f791518fc..23325007ab20 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/bar_ref_or_value.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/bar_ref_or_value.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -14,8 +16,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum BarRefOrValue { - Bar(Box), - BarRef(Box), + Bar(Box), + BarRef(Box), } impl Default for BarRefOrValue { diff --git a/samples/client/others/rust/hyper/oneOf/src/models/entity.rs b/samples/client/others/rust/hyper/oneOf/src/models/entity.rs index 369ff4a214ff..ec82e1d11c35 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/entity.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/entity.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/entity_ref.rs b/samples/client/others/rust/hyper/oneOf/src/models/entity_ref.rs index e7af4c243e28..a4585a3e3ab9 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/entity_ref.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/entity_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/extensible.rs b/samples/client/others/rust/hyper/oneOf/src/models/extensible.rs index 65b776949652..d3061ab36cc1 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/extensible.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/extensible.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/foo.rs b/samples/client/others/rust/hyper/oneOf/src/models/foo.rs index 4b865bfa7dcc..546608178e20 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/foo.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/foo.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/foo_ref.rs b/samples/client/others/rust/hyper/oneOf/src/models/foo_ref.rs index fb28017bd08d..bf47bf393c60 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/foo_ref.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/foo_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/foo_ref_or_value.rs b/samples/client/others/rust/hyper/oneOf/src/models/foo_ref_or_value.rs index 025e4048784d..89ea309d569e 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/foo_ref_or_value.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/foo_ref_or_value.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -13,8 +15,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(tag = "@type")] pub enum FooRefOrValue { - Foo(Box), - FooRef(Box), + Foo(Box), + FooRef(Box), } impl Default for FooRefOrValue { diff --git a/samples/client/others/rust/hyper/oneOf/src/models/fruit.rs b/samples/client/others/rust/hyper/oneOf/src/models/fruit.rs index e5a10accb400..4f479ec09e90 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/fruit.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/fruit.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -14,9 +16,9 @@ #[serde(tag = "fruitType")] pub enum Fruit { #[serde(rename="APPLE")] - Apple(Box), + Apple(Box), #[serde(rename="BANANA")] - Banana(Box), + Banana(Box), } impl Default for Fruit { diff --git a/samples/client/others/rust/hyper/oneOf/src/models/fruit_type.rs b/samples/client/others/rust/hyper/oneOf/src/models/fruit_type.rs index 3927e1805e1e..b300d992a636 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/fruit_type.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/fruit_type.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/pasta.rs b/samples/client/others/rust/hyper/oneOf/src/models/pasta.rs index 11f64426bbe0..36652331311b 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/pasta.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/pasta.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/pizza.rs b/samples/client/others/rust/hyper/oneOf/src/models/pizza.rs index b5bf98e0f035..fcf98581fbd6 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/pizza.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/pizza.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/hyper/oneOf/src/models/pizza_speziale.rs b/samples/client/others/rust/hyper/oneOf/src/models/pizza_speziale.rs index cb1efbe7d1d4..ff82c9a3bc5e 100644 --- a/samples/client/others/rust/hyper/oneOf/src/models/pizza_speziale.rs +++ b/samples/client/others/rust/hyper/oneOf/src/models/pizza_speziale.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest-regression-16119/docs/DefaultApi.md b/samples/client/others/rust/reqwest-regression-16119/docs/DefaultApi.md index 97e04bf99aa5..299074842729 100644 --- a/samples/client/others/rust/reqwest-regression-16119/docs/DefaultApi.md +++ b/samples/client/others/rust/reqwest-regression-16119/docs/DefaultApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## repro -> crate::models::Parent repro() +> models::Parent repro() ### Parameters @@ -19,7 +19,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::Parent**](Parent.md) +[**models::Parent**](Parent.md) ### Authorization diff --git a/samples/client/others/rust/reqwest-regression-16119/src/apis/default_api.rs b/samples/client/others/rust/reqwest-regression-16119/src/apis/default_api.rs index 311740b5e8a7..9f70938d1bc3 100644 --- a/samples/client/others/rust/reqwest-regression-16119/src/apis/default_api.rs +++ b/samples/client/others/rust/reqwest-regression-16119/src/apis/default_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -23,7 +23,7 @@ pub enum ReproError { } -pub fn repro(configuration: &configuration::Configuration, ) -> Result> { +pub fn repro(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest-regression-16119/src/models/parent.rs b/samples/client/others/rust/reqwest-regression-16119/src/models/parent.rs index 285db1dfad1f..972fd4c7412f 100644 --- a/samples/client/others/rust/reqwest-regression-16119/src/models/parent.rs +++ b/samples/client/others/rust/reqwest-regression-16119/src/models/parent.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * double-option-hashmap * diff --git a/samples/client/others/rust/reqwest/composed-oneof/docs/DefaultApi.md b/samples/client/others/rust/reqwest/composed-oneof/docs/DefaultApi.md index 328a4689d9f2..671b54b761b2 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/docs/DefaultApi.md +++ b/samples/client/others/rust/reqwest/composed-oneof/docs/DefaultApi.md @@ -39,7 +39,7 @@ No authorization required ## get_state -> crate::models::GetState200Response get_state() +> models::GetState200Response get_state() ### Parameters @@ -48,7 +48,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::GetState200Response**](getState_200_response.md) +[**models::GetState200Response**](getState_200_response.md) ### Authorization diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/apis/default_api.rs b/samples/client/others/rust/reqwest/composed-oneof/src/apis/default_api.rs index f9254162d79b..c2a02e02dcd7 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/apis/default_api.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/apis/default_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -58,7 +58,7 @@ pub fn create_state(configuration: &configuration::Configuration, create_state_r } } -pub fn get_state(configuration: &configuration::Configuration, ) -> Result> { +pub fn get_state(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/create_state_request.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/create_state_request.rs index 16e618805baa..751362a22d5d 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/create_state_request.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/create_state_request.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,9 +16,9 @@ #[serde(tag = "realtype")] pub enum CreateStateRequest { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), } impl Default for CreateStateRequest { diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_array_schema_inner.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_array_schema_inner.rs index 4180b8a0de01..255030da6686 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_array_schema_inner.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_array_schema_inner.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,11 +16,11 @@ #[serde(tag = "realtype")] pub enum CustomOneOfArraySchemaInner { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), #[serde(rename="c-type")] - ObjC(Box), + ObjC(Box), } impl Default for CustomOneOfArraySchemaInner { diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_schema.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_schema.rs index 6c1eaeb6231f..0bddc69a829a 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_schema.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/custom_one_of_schema.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,9 +16,9 @@ #[serde(tag = "realtype")] pub enum CustomOneOfSchema { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), } impl Default for CustomOneOfSchema { diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/get_state_200_response.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/get_state_200_response.rs index 64fd37db1d84..b87bf89b7627 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/get_state_200_response.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/get_state_200_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * @@ -14,11 +16,11 @@ #[serde(tag = "realtype")] pub enum GetState200Response { #[serde(rename="a-type")] - ObjA(Box), + ObjA(Box), #[serde(rename="b-type")] - ObjB(Box), + ObjB(Box), #[serde(rename="d-type")] - ObjD(Box), + ObjD(Box), } impl Default for GetState200Response { diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_a.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_a.rs index dc265f948346..bfcbfb3028c8 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_a.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_a.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_b.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_b.rs index 0f664efd8bca..d905bb9722e3 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_b.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_b.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_c.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_c.rs index 5aa6635e959c..b550e8d8fa00 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_c.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_c.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_d.rs b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_d.rs index 58101e561a84..f8cefe33c74b 100644 --- a/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_d.rs +++ b/samples/client/others/rust/reqwest/composed-oneof/src/models/obj_d.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * oneOf test * diff --git a/samples/client/others/rust/reqwest/emptyObject/docs/DefaultApi.md b/samples/client/others/rust/reqwest/emptyObject/docs/DefaultApi.md index 7af86d20cc58..8f4a821642bf 100644 --- a/samples/client/others/rust/reqwest/emptyObject/docs/DefaultApi.md +++ b/samples/client/others/rust/reqwest/emptyObject/docs/DefaultApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## endpoint_get -> crate::models::EmptyObject endpoint_get() +> models::EmptyObject endpoint_get() Get endpoint ### Parameters @@ -19,7 +19,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::EmptyObject**](EmptyObject.md) +[**models::EmptyObject**](EmptyObject.md) ### Authorization diff --git a/samples/client/others/rust/reqwest/emptyObject/src/apis/default_api.rs b/samples/client/others/rust/reqwest/emptyObject/src/apis/default_api.rs index 66d7e9e3ac8d..09832aa9133e 100644 --- a/samples/client/others/rust/reqwest/emptyObject/src/apis/default_api.rs +++ b/samples/client/others/rust/reqwest/emptyObject/src/apis/default_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -23,7 +23,7 @@ pub enum EndpointGetError { } -pub fn endpoint_get(configuration: &configuration::Configuration, ) -> Result> { +pub fn endpoint_get(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest/emptyObject/src/models/empty_object.rs b/samples/client/others/rust/reqwest/emptyObject/src/models/empty_object.rs index cf42c3a6922f..06e27f51fcbc 100644 --- a/samples/client/others/rust/reqwest/emptyObject/src/models/empty_object.rs +++ b/samples/client/others/rust/reqwest/emptyObject/src/models/empty_object.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * EmptyObject * diff --git a/samples/client/others/rust/reqwest/oneOf-array-map/docs/DefaultApi.md b/samples/client/others/rust/reqwest/oneOf-array-map/docs/DefaultApi.md index ee2d4d178084..d7fae1cddb6f 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/docs/DefaultApi.md +++ b/samples/client/others/rust/reqwest/oneOf-array-map/docs/DefaultApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## root_get -> crate::models::Fruit root_get() +> models::Fruit root_get() ### Parameters @@ -20,7 +20,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::Fruit**](fruit.md) +[**models::Fruit**](fruit.md) ### Authorization diff --git a/samples/client/others/rust/reqwest/oneOf-array-map/docs/Fruit.md b/samples/client/others/rust/reqwest/oneOf-array-map/docs/Fruit.md index 4d45a65c199b..02d10609d0ae 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/docs/Fruit.md +++ b/samples/client/others/rust/reqwest/oneOf-array-map/docs/Fruit.md @@ -4,8 +4,8 @@ | Name | Description | |---- | -----| -| Vec | | -| std::collections::HashMap | | +| Vec | | +| std::collections::HashMap | | [[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/samples/client/others/rust/reqwest/oneOf-array-map/src/apis/default_api.rs b/samples/client/others/rust/reqwest/oneOf-array-map/src/apis/default_api.rs index d1572b8ba54f..b87854cd090c 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/src/apis/default_api.rs +++ b/samples/client/others/rust/reqwest/oneOf-array-map/src/apis/default_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -30,7 +30,7 @@ pub enum TestError { } -pub fn root_get(configuration: &configuration::Configuration, ) -> Result> { +pub fn root_get(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/apple.rs b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/apple.rs index 0f7442a04257..2df6d0e08e59 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/apple.rs +++ b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/apple.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * diff --git a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/fruit.rs b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/fruit.rs index f6431a6d9715..2247f085851e 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/fruit.rs +++ b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/fruit.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * @@ -14,13 +16,13 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum Fruit { - std::collections::HashMap(Box>), - Vec(Box>), + Apples(Box>), + Grapes(Box>), } impl Default for Fruit { fn default() -> Self { - Self::std::collections::HashMap(Box::default()) + Self::Apples(Box::default()) } } diff --git a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/grape.rs b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/grape.rs index 3673af1fb9f5..86ead6847095 100644 --- a/samples/client/others/rust/reqwest/oneOf-array-map/src/models/grape.rs +++ b/samples/client/others/rust/reqwest/oneOf-array-map/src/models/grape.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * fruity * diff --git a/samples/client/others/rust/reqwest/oneOf/docs/Bar.md b/samples/client/others/rust/reqwest/oneOf/docs/Bar.md index e923f9d0dfb4..188b551a0f92 100644 --- a/samples/client/others/rust/reqwest/oneOf/docs/Bar.md +++ b/samples/client/others/rust/reqwest/oneOf/docs/Bar.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **id** | **String** | | **bar_prop_a** | Option<**String**> | | [optional] **foo_prop_b** | Option<**String**> | | [optional] -**foo** | Option<[**crate::models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] +**foo** | Option<[**models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] **href** | Option<**String**> | Hyperlink reference | [optional] **at_schema_location** | Option<**String**> | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] **at_base_type** | Option<**String**> | When sub-classing, this defines the super-class | [optional] diff --git a/samples/client/others/rust/reqwest/oneOf/docs/BarApi.md b/samples/client/others/rust/reqwest/oneOf/docs/BarApi.md index f4a74a71edbe..e2d2e4b23f01 100644 --- a/samples/client/others/rust/reqwest/oneOf/docs/BarApi.md +++ b/samples/client/others/rust/reqwest/oneOf/docs/BarApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## create_bar -> crate::models::Bar create_bar(bar_create) +> models::Bar create_bar(bar_create) Create a Bar ### Parameters @@ -22,7 +22,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Bar**](Bar.md) +[**models::Bar**](Bar.md) ### Authorization diff --git a/samples/client/others/rust/reqwest/oneOf/docs/BarCreate.md b/samples/client/others/rust/reqwest/oneOf/docs/BarCreate.md index 47eb6b9c3bef..f03857dc29b8 100644 --- a/samples/client/others/rust/reqwest/oneOf/docs/BarCreate.md +++ b/samples/client/others/rust/reqwest/oneOf/docs/BarCreate.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **bar_prop_a** | Option<**String**> | | [optional] **foo_prop_b** | Option<**String**> | | [optional] -**foo** | Option<[**crate::models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] +**foo** | Option<[**models::FooRefOrValue**](FooRefOrValue.md)> | | [optional] **href** | Option<**String**> | Hyperlink reference | [optional] **id** | Option<**String**> | unique identifier | [optional] **at_schema_location** | Option<**String**> | A URI to a JSON-Schema file that defines additional attributes and relationships | [optional] diff --git a/samples/client/others/rust/reqwest/oneOf/docs/FooApi.md b/samples/client/others/rust/reqwest/oneOf/docs/FooApi.md index 8021946dd084..96829cfe91a2 100644 --- a/samples/client/others/rust/reqwest/oneOf/docs/FooApi.md +++ b/samples/client/others/rust/reqwest/oneOf/docs/FooApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## create_foo -> crate::models::FooRefOrValue create_foo(foo) +> models::FooRefOrValue create_foo(foo) Create a Foo ### Parameters @@ -23,7 +23,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::FooRefOrValue**](FooRefOrValue.md) +[**models::FooRefOrValue**](FooRefOrValue.md) ### Authorization @@ -39,7 +39,7 @@ No authorization required ## get_all_foos -> Vec get_all_foos() +> Vec get_all_foos() GET all Foos ### Parameters @@ -48,7 +48,7 @@ This endpoint does not need any parameter. ### Return type -[**Vec**](FooRefOrValue.md) +[**Vec**](FooRefOrValue.md) ### Authorization diff --git a/samples/client/others/rust/reqwest/oneOf/src/apis/bar_api.rs b/samples/client/others/rust/reqwest/oneOf/src/apis/bar_api.rs index d3f7fd06268c..f110aec984cc 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/apis/bar_api.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/apis/bar_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -23,7 +23,7 @@ pub enum CreateBarError { } -pub fn create_bar(configuration: &configuration::Configuration, bar_create: crate::models::BarCreate) -> Result> { +pub fn create_bar(configuration: &configuration::Configuration, bar_create: crate::models::BarCreate) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest/oneOf/src/apis/foo_api.rs b/samples/client/others/rust/reqwest/oneOf/src/apis/foo_api.rs index 554673d749f8..52098ac7232d 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/apis/foo_api.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/apis/foo_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -30,7 +30,7 @@ pub enum GetAllFoosError { } -pub fn create_foo(configuration: &configuration::Configuration, foo: Option) -> Result> { +pub fn create_foo(configuration: &configuration::Configuration, foo: Option) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -58,7 +58,7 @@ pub fn create_foo(configuration: &configuration::Configuration, foo: Option Result, Error> { +pub fn get_all_foos(configuration: &configuration::Configuration, ) -> Result, Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/addressable.rs b/samples/client/others/rust/reqwest/oneOf/src/models/addressable.rs index 1110f9bd0aa5..d365468f53c0 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/addressable.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/addressable.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/apple.rs b/samples/client/others/rust/reqwest/oneOf/src/models/apple.rs index dd244a933f1b..6c17e35c43bd 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/apple.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/apple.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/banana.rs b/samples/client/others/rust/reqwest/oneOf/src/models/banana.rs index 8330cc76c6c1..61cbcfddce28 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/banana.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/banana.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/bar.rs b/samples/client/others/rust/reqwest/oneOf/src/models/bar.rs index 0d25ee987774..0a4b4d517171 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/bar.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/bar.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -20,7 +22,7 @@ pub struct Bar { #[serde(rename = "fooPropB", skip_serializing_if = "Option::is_none")] pub foo_prop_b: Option, #[serde(rename = "foo", skip_serializing_if = "Option::is_none")] - pub foo: Option>, + pub foo: Option>, /// Hyperlink reference #[serde(rename = "href", skip_serializing_if = "Option::is_none")] pub href: Option, diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/bar_create.rs b/samples/client/others/rust/reqwest/oneOf/src/models/bar_create.rs index 950642d7dce3..0c5a4120fa5d 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/bar_create.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/bar_create.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -18,7 +20,7 @@ pub struct BarCreate { #[serde(rename = "fooPropB", skip_serializing_if = "Option::is_none")] pub foo_prop_b: Option, #[serde(rename = "foo", skip_serializing_if = "Option::is_none")] - pub foo: Option>, + pub foo: Option>, /// Hyperlink reference #[serde(rename = "href", skip_serializing_if = "Option::is_none")] pub href: Option, diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref.rs b/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref.rs index 9c671a320c03..fbd547e391e2 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref_or_value.rs b/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref_or_value.rs index 003f791518fc..23325007ab20 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref_or_value.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/bar_ref_or_value.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -14,8 +16,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(untagged)] pub enum BarRefOrValue { - Bar(Box), - BarRef(Box), + Bar(Box), + BarRef(Box), } impl Default for BarRefOrValue { diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/entity.rs b/samples/client/others/rust/reqwest/oneOf/src/models/entity.rs index 369ff4a214ff..ec82e1d11c35 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/entity.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/entity.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/entity_ref.rs b/samples/client/others/rust/reqwest/oneOf/src/models/entity_ref.rs index e7af4c243e28..a4585a3e3ab9 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/entity_ref.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/entity_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/extensible.rs b/samples/client/others/rust/reqwest/oneOf/src/models/extensible.rs index 65b776949652..d3061ab36cc1 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/extensible.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/extensible.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/foo.rs b/samples/client/others/rust/reqwest/oneOf/src/models/foo.rs index 4b865bfa7dcc..546608178e20 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/foo.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/foo.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref.rs b/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref.rs index fb28017bd08d..bf47bf393c60 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref_or_value.rs b/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref_or_value.rs index 025e4048784d..89ea309d569e 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref_or_value.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/foo_ref_or_value.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -13,8 +15,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] #[serde(tag = "@type")] pub enum FooRefOrValue { - Foo(Box), - FooRef(Box), + Foo(Box), + FooRef(Box), } impl Default for FooRefOrValue { diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/fruit.rs b/samples/client/others/rust/reqwest/oneOf/src/models/fruit.rs index e5a10accb400..4f479ec09e90 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/fruit.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/fruit.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * @@ -14,9 +16,9 @@ #[serde(tag = "fruitType")] pub enum Fruit { #[serde(rename="APPLE")] - Apple(Box), + Apple(Box), #[serde(rename="BANANA")] - Banana(Box), + Banana(Box), } impl Default for Fruit { diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/fruit_type.rs b/samples/client/others/rust/reqwest/oneOf/src/models/fruit_type.rs index 3927e1805e1e..b300d992a636 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/fruit_type.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/fruit_type.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/pasta.rs b/samples/client/others/rust/reqwest/oneOf/src/models/pasta.rs index 11f64426bbe0..36652331311b 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/pasta.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/pasta.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/pizza.rs b/samples/client/others/rust/reqwest/oneOf/src/models/pizza.rs index b5bf98e0f035..fcf98581fbd6 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/pizza.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/pizza.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/others/rust/reqwest/oneOf/src/models/pizza_speziale.rs b/samples/client/others/rust/reqwest/oneOf/src/models/pizza_speziale.rs index cb1efbe7d1d4..ff82c9a3bc5e 100644 --- a/samples/client/others/rust/reqwest/oneOf/src/models/pizza_speziale.rs +++ b/samples/client/others/rust/reqwest/oneOf/src/models/pizza_speziale.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * ByRefOrValue * diff --git a/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md b/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md index 8490ec5d821b..0d690bd0c56f 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**crate::models::Baz**](Baz.md) | | +**action** | [**Baz**](Baz.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/samples/client/petstore/rust/hyper/petstore/docs/ArrayItemRefTest.md b/samples/client/petstore/rust/hyper/petstore/docs/ArrayItemRefTest.md index 616deda7c4b5..2359c95a1866 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/ArrayItemRefTest.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/ArrayItemRefTest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_with_array_ref** | [**Vec>**](Vec.md) | | -**list_with_object_ref** | [**Vec>**](std::collections::HashMap.md) | | +**list_with_array_ref** | [**Vec**](Vec.md) | | +**list_with_object_ref** | [**Vec**](std::collections::HashMap.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/samples/client/petstore/rust/hyper/petstore/docs/Pet.md b/samples/client/petstore/rust/hyper/petstore/docs/Pet.md index 27886889d1d4..e7a72caa16e9 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/Pet.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**i64**> | | [optional] -**category** | Option<[**crate::models::Category**](Category.md)> | | [optional] +**category** | Option<[**models::Category**](Category.md)> | | [optional] **name** | **String** | | **photo_urls** | **Vec** | | -**tags** | Option<[**Vec**](Tag.md)> | | [optional] +**tags** | Option<[**Vec**](Tag.md)> | | [optional] **status** | Option<**String**> | pet status in the store | [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/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md b/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md index 7deea32cd816..6d542705f058 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## add_pet -> crate::models::Pet add_pet(pet) +> models::Pet add_pet(pet) Add a new pet to the store @@ -31,7 +31,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_status -> Vec find_pets_by_status(status) +> Vec find_pets_by_status(status) Finds Pets by status Multiple status values can be provided with comma separated strings @@ -92,7 +92,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -108,7 +108,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_tags -> Vec find_pets_by_tags(tags) +> Vec find_pets_by_tags(tags) Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -138,7 +138,7 @@ Name | Type | Description | Required | Notes ## get_pet_by_id -> crate::models::Pet get_pet_by_id(pet_id) +> models::Pet get_pet_by_id(pet_id) Find pet by ID Returns a single pet @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -168,7 +168,7 @@ Name | Type | Description | Required | Notes ## update_pet -> crate::models::Pet update_pet(pet) +> models::Pet update_pet(pet) Update an existing pet @@ -182,7 +182,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -230,7 +230,7 @@ Name | Type | Description | Required | Notes ## upload_file -> crate::models::ApiResponse upload_file(pet_id, additional_metadata, file) +> models::ApiResponse upload_file(pet_id, additional_metadata, file) uploads an image @@ -246,7 +246,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ApiResponse**](ApiResponse.md) +[**models::ApiResponse**](ApiResponse.md) ### Authorization diff --git a/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md b/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md index 307915587fed..d9bbe8b23734 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/StoreApi.md @@ -70,7 +70,7 @@ This endpoint does not need any parameter. ## get_order_by_id -> crate::models::Order get_order_by_id(order_id) +> models::Order get_order_by_id(order_id) Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -84,7 +84,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization @@ -100,7 +100,7 @@ No authorization required ## place_order -> crate::models::Order place_order(order) +> models::Order place_order(order) Place an order for a pet @@ -114,7 +114,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization diff --git a/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md b/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md index 9f72e78530b4..131b5dda5a8e 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/TestingApi.md @@ -36,7 +36,7 @@ No authorization required ## tests_type_testing_get -> crate::models::TypeTesting tests_type_testing_get() +> models::TypeTesting tests_type_testing_get() Route to test the TypeTesting schema ### Parameters @@ -45,7 +45,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::TypeTesting**](TypeTesting.md) +[**models::TypeTesting**](TypeTesting.md) ### Authorization diff --git a/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md b/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md index 39e455d9073d..22192c1fd888 100644 --- a/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/hyper/petstore/docs/UserApi.md @@ -57,7 +57,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -87,7 +87,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes ## get_user_by_name -> crate::models::User get_user_by_name(username) +> models::User get_user_by_name(username) Get user by user name @@ -151,7 +151,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::User**](User.md) +[**models::User**](User.md) ### Authorization diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs index 49ffc5a3bce0..685b7262fff4 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs index 019ed347cdff..3813527d3519 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -35,20 +36,20 @@ impl PetApiClient } pub trait PetApi { - fn add_pet(&self, pet: crate::models::Pet) -> Pin>>>; + fn add_pet(&self, pet: crate::models::Pet) -> Pin>>>; fn delete_pet(&self, pet_id: i64, api_key: Option<&str>) -> Pin>>>; - fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>>; - fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>>; - fn get_pet_by_id(&self, pet_id: i64) -> Pin>>>; - fn update_pet(&self, pet: crate::models::Pet) -> Pin>>>; + fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>>; + fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>>; + fn get_pet_by_id(&self, pet_id: i64) -> Pin>>>; + fn update_pet(&self, pet: crate::models::Pet) -> Pin>>>; fn update_pet_with_form(&self, pet_id: i64, name: Option<&str>, status: Option<&str>) -> Pin>>>; - fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>>; + fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>>; } implPetApi for PetApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn add_pet(&self, pet: crate::models::Pet) -> Pin>>> { + fn add_pet(&self, pet: crate::models::Pet) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/pet".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -72,7 +73,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>> { + fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/findByStatus".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -82,7 +83,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>> { + fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/findByTags".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -92,7 +93,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn get_pet_by_id(&self, pet_id: i64) -> Pin>>> { + fn get_pet_by_id(&self, pet_id: i64) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/{petId}".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -106,7 +107,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn update_pet(&self, pet: crate::models::Pet) -> Pin>>> { + fn update_pet(&self, pet: crate::models::Pet) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::PUT, "/pet".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -133,7 +134,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>> { + fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/pet/{petId}/uploadImage".to_string()) .with_auth(__internal_request::Auth::Oauth) ; diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs index 41759dc960b3..c2afd7683abb 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -37,8 +38,8 @@ impl StoreApiClient pub trait StoreApi { fn delete_order(&self, order_id: &str) -> Pin>>>; fn get_inventory(&self, ) -> Pin, Error>>>>; - fn get_order_by_id(&self, order_id: i64) -> Pin>>>; - fn place_order(&self, order: crate::models::Order) -> Pin>>>; + fn get_order_by_id(&self, order_id: i64) -> Pin>>>; + fn place_order(&self, order: crate::models::Order) -> Pin>>>; } implStoreApi for StoreApiClient @@ -67,7 +68,7 @@ implStoreApi for StoreApiClient } #[allow(unused_mut)] - fn get_order_by_id(&self, order_id: i64) -> Pin>>> { + fn get_order_by_id(&self, order_id: i64) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/store/order/{orderId}".to_string()) ; req = req.with_path_param("orderId".to_string(), order_id.to_string()); @@ -76,7 +77,7 @@ implStoreApi for StoreApiClient } #[allow(unused_mut)] - fn place_order(&self, order: crate::models::Order) -> Pin>>> { + fn place_order(&self, order: crate::models::Order) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/store/order".to_string()) ; req = req.with_body_param(order); diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs index fd521555b763..a7df972d7331 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -36,7 +37,7 @@ impl TestingApiClient pub trait TestingApi { fn tests_file_response_get(&self, ) -> Pin>>>; - fn tests_type_testing_get(&self, ) -> Pin>>>; + fn tests_type_testing_get(&self, ) -> Pin>>>; } implTestingApi for TestingApiClient @@ -50,7 +51,7 @@ implTestingApi for TestingApiClient } #[allow(unused_mut)] - fn tests_type_testing_get(&self, ) -> Pin>>> { + fn tests_type_testing_get(&self, ) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/tests/typeTesting".to_string()) ; diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs index 817d9166a8b5..ebef22602d0b 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs @@ -17,6 +17,7 @@ use std::option::Option; use hyper; use futures::Future; +use crate::models; use super::{Error, configuration}; use super::request as __internal_request; @@ -36,10 +37,10 @@ impl UserApiClient pub trait UserApi { fn create_user(&self, user: crate::models::User) -> Pin>>>; - fn create_users_with_array_input(&self, user: Vec) -> Pin>>>; - fn create_users_with_list_input(&self, user: Vec) -> Pin>>>; + fn create_users_with_array_input(&self, user: Vec) -> Pin>>>; + fn create_users_with_list_input(&self, user: Vec) -> Pin>>>; fn delete_user(&self, username: &str) -> Pin>>>; - fn get_user_by_name(&self, username: &str) -> Pin>>>; + fn get_user_by_name(&self, username: &str) -> Pin>>>; fn login_user(&self, username: &str, password: &str) -> Pin>>>; fn logout_user(&self, ) -> Pin>>>; fn update_user(&self, username: &str, user: crate::models::User) -> Pin>>>; @@ -63,7 +64,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn create_users_with_array_input(&self, user: Vec) -> Pin>>> { + fn create_users_with_array_input(&self, user: Vec) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/user/createWithArray".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -78,7 +79,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn create_users_with_list_input(&self, user: Vec) -> Pin>>> { + fn create_users_with_list_input(&self, user: Vec) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/user/createWithList".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -108,7 +109,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn get_user_by_name(&self, username: &str) -> Pin>>> { + fn get_user_by_name(&self, username: &str) -> Pin>>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/user/{username}".to_string()) ; req = req.with_path_param("username".to_string(), username.to_string()); diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs b/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs index 7e2d9a0717f9..20fcdf51c3fa 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/action_container.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -14,11 +16,11 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Box, + pub action: Box, } impl ActionContainer { - pub fn new(action: crate::models::Baz) -> ActionContainer { + pub fn new(action: Baz) -> ActionContainer { ActionContainer { action: Box::new(action), } diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/api_response.rs b/samples/client/petstore/rust/hyper/petstore/src/models/api_response.rs index 1741c9ff9cdd..001383c97f18 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/api_response.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/api_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/array_item_ref_test.rs b/samples/client/petstore/rust/hyper/petstore/src/models/array_item_ref_test.rs index 7090cc0b636a..1a7d5f38a0b5 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/array_item_ref_test.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/array_item_ref_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -15,14 +17,14 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ArrayItemRefTest { #[serde(rename = "list_with_array_ref")] - pub list_with_array_ref: Vec>, + pub list_with_array_ref: Vec, #[serde(rename = "list_with_object_ref")] - pub list_with_object_ref: Vec>, + pub list_with_object_ref: Vec, } impl ArrayItemRefTest { /// Test handling of object reference in arrays - pub fn new(list_with_array_ref: Vec>, list_with_object_ref: Vec>) -> ArrayItemRefTest { + pub fn new(list_with_array_ref: Vec, list_with_object_ref: Vec) -> ArrayItemRefTest { ArrayItemRefTest { list_with_array_ref, list_with_object_ref, diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/baz.rs b/samples/client/petstore/rust/hyper/petstore/src/models/baz.rs index 94f8c5aa6aa4..e572fe204124 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/baz.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/baz.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/category.rs b/samples/client/petstore/rust/hyper/petstore/src/models/category.rs index e62af6878b9e..067aad5e54fd 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/category.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/category.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/enum_array_testing.rs b/samples/client/petstore/rust/hyper/petstore/src/models/enum_array_testing.rs index 4ad77233833a..860f9d02dcf1 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/enum_array_testing.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/enum_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/model_return.rs b/samples/client/petstore/rust/hyper/petstore/src/models/model_return.rs index d9619444f707..45f12f85fec1 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/model_return.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/model_return.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/nullable_array.rs b/samples/client/petstore/rust/hyper/petstore/src/models/nullable_array.rs index f177f16192c5..aad44660b5dc 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/nullable_array.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/nullable_array.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/optional_testing.rs b/samples/client/petstore/rust/hyper/petstore/src/models/optional_testing.rs index e8f7af5c012e..9f24111bd076 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/optional_testing.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/optional_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/order.rs b/samples/client/petstore/rust/hyper/petstore/src/models/order.rs index e3385c8ff03c..3e916b84b379 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/order.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/order.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/pet.rs b/samples/client/petstore/rust/hyper/petstore/src/models/pet.rs index 6661e036994b..6097058b792e 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/pet.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/pet.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -17,13 +19,13 @@ pub struct Pet { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "category", skip_serializing_if = "Option::is_none")] - pub category: Option>, + pub category: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "photoUrls")] pub photo_urls: Vec, #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] - pub tags: Option>, + pub tags: Option>, /// pet status in the store #[serde(rename = "status", skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/property_test.rs b/samples/client/petstore/rust/hyper/petstore/src/models/property_test.rs index e496a02311c4..330649729037 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/property_test.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/property_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/tag.rs b/samples/client/petstore/rust/hyper/petstore/src/models/tag.rs index 1786ebec3ac2..d21f0aafd8e6 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/tag.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/tag.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/type_testing.rs b/samples/client/petstore/rust/hyper/petstore/src/models/type_testing.rs index 079ac75daff8..4f0a1819194b 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/type_testing.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/type_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/unique_item_array_testing.rs b/samples/client/petstore/rust/hyper/petstore/src/models/unique_item_array_testing.rs index 854ca0916ae1..93efbd1aa241 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/unique_item_array_testing.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/unique_item_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/user.rs b/samples/client/petstore/rust/hyper/petstore/src/models/user.rs index c52c16ba3162..f8153db61739 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/user.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/user.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/name-mapping/src/apis/fake_api.rs b/samples/client/petstore/rust/reqwest/name-mapping/src/apis/fake_api.rs index 396f8d28fd0d..e40fc8b66c4d 100644 --- a/samples/client/petstore/rust/reqwest/name-mapping/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/reqwest/name-mapping/src/apis/fake_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; diff --git a/samples/client/petstore/rust/reqwest/name-mapping/src/models/property_name_mapping.rs b/samples/client/petstore/rust/reqwest/name-mapping/src/models/property_name_mapping.rs index 713d6680fe9a..a61c9d7cc079 100644 --- a/samples/client/petstore/rust/reqwest/name-mapping/src/models/property_name_mapping.rs +++ b/samples/client/petstore/rust/reqwest/name-mapping/src/models/property_name_mapping.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * rust test * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ActionContainer.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ActionContainer.md index 8490ec5d821b..0d690bd0c56f 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ActionContainer.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**crate::models::Baz**](Baz.md) | | +**action** | [**Baz**](Baz.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/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ArrayItemRefTest.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ArrayItemRefTest.md index 616deda7c4b5..2359c95a1866 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ArrayItemRefTest.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/ArrayItemRefTest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_with_array_ref** | [**Vec>**](Vec.md) | | -**list_with_object_ref** | [**Vec>**](std::collections::HashMap.md) | | +**list_with_array_ref** | [**Vec**](Vec.md) | | +**list_with_object_ref** | [**Vec**](std::collections::HashMap.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/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Pet.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Pet.md index 27886889d1d4..e7a72caa16e9 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Pet.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**i64**> | | [optional] -**category** | Option<[**crate::models::Category**](Category.md)> | | [optional] +**category** | Option<[**models::Category**](Category.md)> | | [optional] **name** | **String** | | **photo_urls** | **Vec** | | -**tags** | Option<[**Vec**](Tag.md)> | | [optional] +**tags** | Option<[**Vec**](Tag.md)> | | [optional] **status** | Option<**String**> | pet status in the store | [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/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md index 5adc9334151a..d503facb903c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## add_pet -> crate::models::Pet add_pet(pet) +> models::Pet add_pet(pet) Add a new pet to the store @@ -31,7 +31,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_status -> Vec find_pets_by_status(status) +> Vec find_pets_by_status(status) Finds Pets by status Multiple status values can be provided with comma separated strings @@ -92,7 +92,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -108,7 +108,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_tags -> Vec find_pets_by_tags(tags) +> Vec find_pets_by_tags(tags) Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -138,7 +138,7 @@ Name | Type | Description | Required | Notes ## get_pet_by_id -> crate::models::Pet get_pet_by_id(pet_id) +> models::Pet get_pet_by_id(pet_id) Find pet by ID Returns a single pet @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -168,7 +168,7 @@ Name | Type | Description | Required | Notes ## update_pet -> crate::models::Pet update_pet(pet) +> models::Pet update_pet(pet) Update an existing pet @@ -182,7 +182,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -230,7 +230,7 @@ Name | Type | Description | Required | Notes ## upload_file -> crate::models::ApiResponse upload_file(pet_id, additional_metadata, file) +> models::ApiResponse upload_file(pet_id, additional_metadata, file) uploads an image @@ -246,7 +246,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ApiResponse**](ApiResponse.md) +[**models::ApiResponse**](ApiResponse.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md index bdcaa95aa9ed..a513dfa1b5fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/StoreApi.md @@ -70,7 +70,7 @@ This endpoint does not need any parameter. ## get_order_by_id -> crate::models::Order get_order_by_id(order_id) +> models::Order get_order_by_id(order_id) Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -84,7 +84,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization @@ -100,7 +100,7 @@ No authorization required ## place_order -> crate::models::Order place_order(order) +> models::Order place_order(order) Place an order for a pet @@ -114,7 +114,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md index ca0c06e06a05..9c26af249127 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/TestingApi.md @@ -36,7 +36,7 @@ No authorization required ## tests_type_testing_get -> crate::models::TypeTesting tests_type_testing_get() +> models::TypeTesting tests_type_testing_get() Route to test the TypeTesting schema ### Parameters @@ -45,7 +45,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::TypeTesting**](TypeTesting.md) +[**models::TypeTesting**](TypeTesting.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md index 03693014b925..d536057ae15a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/UserApi.md @@ -57,7 +57,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -87,7 +87,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes ## get_user_by_name -> crate::models::User get_user_by_name(username) +> models::User get_user_by_name(username) Get user by user name @@ -151,7 +151,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::User**](User.md) +[**models::User**](User.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/fake_api.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/fake_api.rs index f721851a99e6..78d3ba30ec0c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/fake_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`test_nullable_required_param`] diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/pet_api.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/pet_api.rs index 7b4aa20a4ea6..a881754edf61 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/pet_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`add_pet`] @@ -84,7 +84,7 @@ pub struct UploadFileParams { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AddPetSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -99,7 +99,7 @@ pub enum DeletePetSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FindPetsByStatusSuccess { - Status200(Vec), + Status200(Vec), UnknownValue(serde_json::Value), } @@ -107,7 +107,7 @@ pub enum FindPetsByStatusSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FindPetsByTagsSuccess { - Status200(Vec), + Status200(Vec), UnknownValue(serde_json::Value), } @@ -115,7 +115,7 @@ pub enum FindPetsByTagsSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetPetByIdSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -123,7 +123,7 @@ pub enum GetPetByIdSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdatePetSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -138,7 +138,7 @@ pub enum UpdatePetWithFormSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UploadFileSuccess { - Status200(crate::models::ApiResponse), + Status200(models::ApiResponse), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/store_api.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/store_api.rs index b8d5baac7416..684a12e62dd0 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/store_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/store_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`delete_order`] @@ -55,7 +55,7 @@ pub enum GetInventorySuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetOrderByIdSuccess { - Status200(crate::models::Order), + Status200(models::Order), UnknownValue(serde_json::Value), } @@ -63,7 +63,7 @@ pub enum GetOrderByIdSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum PlaceOrderSuccess { - Status200(crate::models::Order), + Status200(models::Order), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/testing_api.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/testing_api.rs index c5c9ad35725c..86f87242fcc6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/testing_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -27,7 +27,7 @@ pub enum TestsFileResponseGetSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum TestsTypeTestingGetSuccess { - Status200(crate::models::TypeTesting), + Status200(models::TypeTesting), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/user_api.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/user_api.rs index 1a49861f80e5..c8200a2dc84a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/user_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/apis/user_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`create_user`] @@ -25,14 +25,14 @@ pub struct CreateUserParams { #[derive(Clone, Debug)] pub struct CreateUsersWithArrayInputParams { /// List of user object - pub user: Vec + pub user: Vec } /// struct for passing parameters to the method [`create_users_with_list_input`] #[derive(Clone, Debug)] pub struct CreateUsersWithListInputParams { /// List of user object - pub user: Vec + pub user: Vec } /// struct for passing parameters to the method [`delete_user`] @@ -100,7 +100,7 @@ pub enum DeleteUserSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserByNameSuccess { - Status200(crate::models::User), + Status200(models::User), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/action_container.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/action_container.rs index 7e2d9a0717f9..20fcdf51c3fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/action_container.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/action_container.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -14,11 +16,11 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Box, + pub action: Box, } impl ActionContainer { - pub fn new(action: crate::models::Baz) -> ActionContainer { + pub fn new(action: Baz) -> ActionContainer { ActionContainer { action: Box::new(action), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/api_response.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/api_response.rs index 1741c9ff9cdd..001383c97f18 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/api_response.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/api_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/array_item_ref_test.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/array_item_ref_test.rs index 7090cc0b636a..1a7d5f38a0b5 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/array_item_ref_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/array_item_ref_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -15,14 +17,14 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ArrayItemRefTest { #[serde(rename = "list_with_array_ref")] - pub list_with_array_ref: Vec>, + pub list_with_array_ref: Vec, #[serde(rename = "list_with_object_ref")] - pub list_with_object_ref: Vec>, + pub list_with_object_ref: Vec, } impl ArrayItemRefTest { /// Test handling of object reference in arrays - pub fn new(list_with_array_ref: Vec>, list_with_object_ref: Vec>) -> ArrayItemRefTest { + pub fn new(list_with_array_ref: Vec, list_with_object_ref: Vec) -> ArrayItemRefTest { ArrayItemRefTest { list_with_array_ref, list_with_object_ref, diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/baz.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/baz.rs index 94f8c5aa6aa4..e572fe204124 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/baz.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/baz.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/category.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/category.rs index e62af6878b9e..067aad5e54fd 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/category.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/category.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/enum_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/enum_array_testing.rs index 4ad77233833a..860f9d02dcf1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/enum_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/enum_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/model_return.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/model_return.rs index d9619444f707..45f12f85fec1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/model_return.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/model_return.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/nullable_array.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/nullable_array.rs index f177f16192c5..aad44660b5dc 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/nullable_array.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/nullable_array.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/optional_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/optional_testing.rs index e8f7af5c012e..9f24111bd076 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/optional_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/optional_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/order.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/order.rs index e3385c8ff03c..3e916b84b379 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/order.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/order.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/pet.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/pet.rs index 6661e036994b..6097058b792e 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/pet.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/pet.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -17,13 +19,13 @@ pub struct Pet { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "category", skip_serializing_if = "Option::is_none")] - pub category: Option>, + pub category: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "photoUrls")] pub photo_urls: Vec, #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] - pub tags: Option>, + pub tags: Option>, /// pet status in the store #[serde(rename = "status", skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/property_test.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/property_test.rs index e496a02311c4..330649729037 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/property_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/property_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/tag.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/tag.rs index 1786ebec3ac2..d21f0aafd8e6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/tag.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/tag.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/type_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/type_testing.rs index 079ac75daff8..4f0a1819194b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/type_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/type_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/unique_item_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/unique_item_array_testing.rs index 854ca0916ae1..93efbd1aa241 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/unique_item_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/unique_item_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/user.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/user.rs index c52c16ba3162..f8153db61739 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/user.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/user.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/ActionContainer.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/ActionContainer.md index 8490ec5d821b..0d690bd0c56f 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/ActionContainer.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**crate::models::Baz**](Baz.md) | | +**action** | [**Baz**](Baz.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/samples/client/petstore/rust/reqwest/petstore-async/docs/ArrayItemRefTest.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/ArrayItemRefTest.md index 616deda7c4b5..2359c95a1866 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/ArrayItemRefTest.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/ArrayItemRefTest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_with_array_ref** | [**Vec>**](Vec.md) | | -**list_with_object_ref** | [**Vec>**](std::collections::HashMap.md) | | +**list_with_array_ref** | [**Vec**](Vec.md) | | +**list_with_object_ref** | [**Vec**](std::collections::HashMap.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/samples/client/petstore/rust/reqwest/petstore-async/docs/Pet.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/Pet.md index 27886889d1d4..e7a72caa16e9 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/Pet.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**i64**> | | [optional] -**category** | Option<[**crate::models::Category**](Category.md)> | | [optional] +**category** | Option<[**models::Category**](Category.md)> | | [optional] **name** | **String** | | **photo_urls** | **Vec** | | -**tags** | Option<[**Vec**](Tag.md)> | | [optional] +**tags** | Option<[**Vec**](Tag.md)> | | [optional] **status** | Option<**String**> | pet status in the store | [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/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md index 5adc9334151a..d503facb903c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## add_pet -> crate::models::Pet add_pet(pet) +> models::Pet add_pet(pet) Add a new pet to the store @@ -31,7 +31,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_status -> Vec find_pets_by_status(status) +> Vec find_pets_by_status(status) Finds Pets by status Multiple status values can be provided with comma separated strings @@ -92,7 +92,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -108,7 +108,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_tags -> Vec find_pets_by_tags(tags) +> Vec find_pets_by_tags(tags) Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -138,7 +138,7 @@ Name | Type | Description | Required | Notes ## get_pet_by_id -> crate::models::Pet get_pet_by_id(pet_id) +> models::Pet get_pet_by_id(pet_id) Find pet by ID Returns a single pet @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -168,7 +168,7 @@ Name | Type | Description | Required | Notes ## update_pet -> crate::models::Pet update_pet(pet) +> models::Pet update_pet(pet) Update an existing pet @@ -182,7 +182,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -230,7 +230,7 @@ Name | Type | Description | Required | Notes ## upload_file -> crate::models::ApiResponse upload_file(pet_id, additional_metadata, file) +> models::ApiResponse upload_file(pet_id, additional_metadata, file) uploads an image @@ -246,7 +246,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ApiResponse**](ApiResponse.md) +[**models::ApiResponse**](ApiResponse.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md index bdcaa95aa9ed..a513dfa1b5fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/StoreApi.md @@ -70,7 +70,7 @@ This endpoint does not need any parameter. ## get_order_by_id -> crate::models::Order get_order_by_id(order_id) +> models::Order get_order_by_id(order_id) Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -84,7 +84,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization @@ -100,7 +100,7 @@ No authorization required ## place_order -> crate::models::Order place_order(order) +> models::Order place_order(order) Place an order for a pet @@ -114,7 +114,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md index ca0c06e06a05..9c26af249127 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/TestingApi.md @@ -36,7 +36,7 @@ No authorization required ## tests_type_testing_get -> crate::models::TypeTesting tests_type_testing_get() +> models::TypeTesting tests_type_testing_get() Route to test the TypeTesting schema ### Parameters @@ -45,7 +45,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::TypeTesting**](TypeTesting.md) +[**models::TypeTesting**](TypeTesting.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md index 03693014b925..d536057ae15a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/UserApi.md @@ -57,7 +57,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -87,7 +87,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes ## get_user_by_name -> crate::models::User get_user_by_name(username) +> models::User get_user_by_name(username) Get user by user name @@ -151,7 +151,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::User**](User.md) +[**models::User**](User.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/fake_api.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/fake_api.rs index f721851a99e6..78d3ba30ec0c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/fake_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`test_nullable_required_param`] diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/pet_api.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/pet_api.rs index 7b4aa20a4ea6..a881754edf61 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/pet_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`add_pet`] @@ -84,7 +84,7 @@ pub struct UploadFileParams { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum AddPetSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -99,7 +99,7 @@ pub enum DeletePetSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FindPetsByStatusSuccess { - Status200(Vec), + Status200(Vec), UnknownValue(serde_json::Value), } @@ -107,7 +107,7 @@ pub enum FindPetsByStatusSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum FindPetsByTagsSuccess { - Status200(Vec), + Status200(Vec), UnknownValue(serde_json::Value), } @@ -115,7 +115,7 @@ pub enum FindPetsByTagsSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetPetByIdSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -123,7 +123,7 @@ pub enum GetPetByIdSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UpdatePetSuccess { - Status200(crate::models::Pet), + Status200(models::Pet), UnknownValue(serde_json::Value), } @@ -138,7 +138,7 @@ pub enum UpdatePetWithFormSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum UploadFileSuccess { - Status200(crate::models::ApiResponse), + Status200(models::ApiResponse), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/store_api.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/store_api.rs index b8d5baac7416..684a12e62dd0 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/store_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/store_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`delete_order`] @@ -55,7 +55,7 @@ pub enum GetInventorySuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetOrderByIdSuccess { - Status200(crate::models::Order), + Status200(models::Order), UnknownValue(serde_json::Value), } @@ -63,7 +63,7 @@ pub enum GetOrderByIdSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum PlaceOrderSuccess { - Status200(crate::models::Order), + Status200(models::Order), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/testing_api.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/testing_api.rs index c5c9ad35725c..86f87242fcc6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/testing_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -27,7 +27,7 @@ pub enum TestsFileResponseGetSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum TestsTypeTestingGetSuccess { - Status200(crate::models::TypeTesting), + Status200(models::TypeTesting), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/user_api.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/user_api.rs index 1a49861f80e5..c8200a2dc84a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/apis/user_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/apis/user_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; /// struct for passing parameters to the method [`create_user`] @@ -25,14 +25,14 @@ pub struct CreateUserParams { #[derive(Clone, Debug)] pub struct CreateUsersWithArrayInputParams { /// List of user object - pub user: Vec + pub user: Vec } /// struct for passing parameters to the method [`create_users_with_list_input`] #[derive(Clone, Debug)] pub struct CreateUsersWithListInputParams { /// List of user object - pub user: Vec + pub user: Vec } /// struct for passing parameters to the method [`delete_user`] @@ -100,7 +100,7 @@ pub enum DeleteUserSuccess { #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(untagged)] pub enum GetUserByNameSuccess { - Status200(crate::models::User), + Status200(models::User), UnknownValue(serde_json::Value), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/action_container.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/action_container.rs index 7e2d9a0717f9..20fcdf51c3fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/action_container.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/action_container.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -14,11 +16,11 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Box, + pub action: Box, } impl ActionContainer { - pub fn new(action: crate::models::Baz) -> ActionContainer { + pub fn new(action: Baz) -> ActionContainer { ActionContainer { action: Box::new(action), } diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/api_response.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/api_response.rs index 1741c9ff9cdd..001383c97f18 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/api_response.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/api_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/array_item_ref_test.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/array_item_ref_test.rs index 7090cc0b636a..1a7d5f38a0b5 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/array_item_ref_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/array_item_ref_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -15,14 +17,14 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ArrayItemRefTest { #[serde(rename = "list_with_array_ref")] - pub list_with_array_ref: Vec>, + pub list_with_array_ref: Vec, #[serde(rename = "list_with_object_ref")] - pub list_with_object_ref: Vec>, + pub list_with_object_ref: Vec, } impl ArrayItemRefTest { /// Test handling of object reference in arrays - pub fn new(list_with_array_ref: Vec>, list_with_object_ref: Vec>) -> ArrayItemRefTest { + pub fn new(list_with_array_ref: Vec, list_with_object_ref: Vec) -> ArrayItemRefTest { ArrayItemRefTest { list_with_array_ref, list_with_object_ref, diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/baz.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/baz.rs index 94f8c5aa6aa4..e572fe204124 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/baz.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/baz.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/category.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/category.rs index e62af6878b9e..067aad5e54fd 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/category.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/category.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/enum_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/enum_array_testing.rs index 4ad77233833a..860f9d02dcf1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/enum_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/enum_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/model_return.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/model_return.rs index d9619444f707..45f12f85fec1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/model_return.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/model_return.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/nullable_array.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/nullable_array.rs index f177f16192c5..aad44660b5dc 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/nullable_array.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/nullable_array.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/optional_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/optional_testing.rs index e8f7af5c012e..9f24111bd076 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/optional_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/optional_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/order.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/order.rs index e3385c8ff03c..3e916b84b379 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/order.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/order.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/pet.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/pet.rs index 6661e036994b..6097058b792e 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/pet.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/pet.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -17,13 +19,13 @@ pub struct Pet { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "category", skip_serializing_if = "Option::is_none")] - pub category: Option>, + pub category: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "photoUrls")] pub photo_urls: Vec, #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] - pub tags: Option>, + pub tags: Option>, /// pet status in the store #[serde(rename = "status", skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/property_test.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/property_test.rs index e496a02311c4..330649729037 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/property_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/property_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/tag.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/tag.rs index 1786ebec3ac2..d21f0aafd8e6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/tag.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/tag.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/type_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/type_testing.rs index 079ac75daff8..4f0a1819194b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/type_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/type_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/unique_item_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/unique_item_array_testing.rs index 854ca0916ae1..93efbd1aa241 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/unique_item_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/unique_item_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/user.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/user.rs index c52c16ba3162..f8153db61739 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/user.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/user.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ActionContainer.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ActionContainer.md index 8490ec5d821b..0d690bd0c56f 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ActionContainer.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**crate::models::Baz**](Baz.md) | | +**action** | [**Baz**](Baz.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/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ArrayItemRefTest.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ArrayItemRefTest.md index 616deda7c4b5..2359c95a1866 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ArrayItemRefTest.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/ArrayItemRefTest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_with_array_ref** | [**Vec>**](Vec.md) | | -**list_with_object_ref** | [**Vec>**](std::collections::HashMap.md) | | +**list_with_array_ref** | [**Vec**](Vec.md) | | +**list_with_object_ref** | [**Vec**](std::collections::HashMap.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/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Pet.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Pet.md index 27886889d1d4..e7a72caa16e9 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Pet.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**i64**> | | [optional] -**category** | Option<[**crate::models::Category**](Category.md)> | | [optional] +**category** | Option<[**models::Category**](Category.md)> | | [optional] **name** | **String** | | **photo_urls** | **Vec** | | -**tags** | Option<[**Vec**](Tag.md)> | | [optional] +**tags** | Option<[**Vec**](Tag.md)> | | [optional] **status** | Option<**String**> | pet status in the store | [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/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md index 5adc9334151a..d503facb903c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## add_pet -> crate::models::Pet add_pet(pet) +> models::Pet add_pet(pet) Add a new pet to the store @@ -31,7 +31,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_status -> Vec find_pets_by_status(status) +> Vec find_pets_by_status(status) Finds Pets by status Multiple status values can be provided with comma separated strings @@ -92,7 +92,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -108,7 +108,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_tags -> Vec find_pets_by_tags(tags) +> Vec find_pets_by_tags(tags) Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -138,7 +138,7 @@ Name | Type | Description | Required | Notes ## get_pet_by_id -> crate::models::Pet get_pet_by_id(pet_id) +> models::Pet get_pet_by_id(pet_id) Find pet by ID Returns a single pet @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -168,7 +168,7 @@ Name | Type | Description | Required | Notes ## update_pet -> crate::models::Pet update_pet(pet) +> models::Pet update_pet(pet) Update an existing pet @@ -182,7 +182,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -230,7 +230,7 @@ Name | Type | Description | Required | Notes ## upload_file -> crate::models::ApiResponse upload_file(pet_id, additional_metadata, file) +> models::ApiResponse upload_file(pet_id, additional_metadata, file) uploads an image @@ -246,7 +246,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ApiResponse**](ApiResponse.md) +[**models::ApiResponse**](ApiResponse.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md index bdcaa95aa9ed..a513dfa1b5fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/StoreApi.md @@ -70,7 +70,7 @@ This endpoint does not need any parameter. ## get_order_by_id -> crate::models::Order get_order_by_id(order_id) +> models::Order get_order_by_id(order_id) Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -84,7 +84,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization @@ -100,7 +100,7 @@ No authorization required ## place_order -> crate::models::Order place_order(order) +> models::Order place_order(order) Place an order for a pet @@ -114,7 +114,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md index ca0c06e06a05..9c26af249127 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/TestingApi.md @@ -36,7 +36,7 @@ No authorization required ## tests_type_testing_get -> crate::models::TypeTesting tests_type_testing_get() +> models::TypeTesting tests_type_testing_get() Route to test the TypeTesting schema ### Parameters @@ -45,7 +45,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::TypeTesting**](TypeTesting.md) +[**models::TypeTesting**](TypeTesting.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md index 03693014b925..d536057ae15a 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/UserApi.md @@ -57,7 +57,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -87,7 +87,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes ## get_user_by_name -> crate::models::User get_user_by_name(username) +> models::User get_user_by_name(username) Get user by user name @@ -151,7 +151,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::User**](User.md) +[**models::User**](User.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/fake_api.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/fake_api.rs index b89bcb6d1fc0..af7818dd030b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/fake_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/pet_api.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/pet_api.rs index 552e66de70fe..9fe35d29c73c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/pet_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -83,7 +83,7 @@ pub enum UploadFileError { /// -pub fn add_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { +pub fn add_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -175,7 +175,7 @@ pub fn delete_pet(configuration: &configuration::Configuration, pet_id: i64, api } /// Multiple status values can be provided with comma separated strings -pub fn find_pets_by_status(configuration: &configuration::Configuration, status: Vec) -> Result, Error> { +pub fn find_pets_by_status(configuration: &configuration::Configuration, status: Vec) -> Result, Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -223,7 +223,7 @@ pub fn find_pets_by_status(configuration: &configuration::Configuration, status: } /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. -pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec) -> Result, Error> { +pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec) -> Result, Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -271,7 +271,7 @@ pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec } /// Returns a single pet -pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) -> Result> { +pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -320,7 +320,7 @@ pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) } /// -pub fn update_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { +pub fn update_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -417,7 +417,7 @@ pub fn update_pet_with_form(configuration: &configuration::Configuration, pet_id } /// -pub fn upload_file(configuration: &configuration::Configuration, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Result> { +pub fn upload_file(configuration: &configuration::Configuration, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/store_api.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/store_api.rs index 27ebc675c4d7..f15f14107786 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/store_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/store_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -127,7 +127,7 @@ pub fn get_inventory(configuration: &configuration::Configuration, ) -> Result 10. Other values will generate exceptions -pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i64) -> Result> { +pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i64) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -155,7 +155,7 @@ pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i } /// -pub fn place_order(configuration: &configuration::Configuration, order: crate::models::Order) -> Result> { +pub fn place_order(configuration: &configuration::Configuration, order: crate::models::Order) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/testing_api.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/testing_api.rs index 9d193f63c7da..f6bca74913ea 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/testing_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -57,7 +57,7 @@ pub fn tests_file_response_get(configuration: &configuration::Configuration, ) - } } -pub fn tests_type_testing_get(configuration: &configuration::Configuration, ) -> Result> { +pub fn tests_type_testing_get(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/user_api.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/user_api.rs index cee0f4d3906b..00b8cc7b3efa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/user_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/apis/user_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -134,7 +134,7 @@ pub fn create_user(configuration: &configuration::Configuration, user: crate::mo } /// -pub fn create_users_with_array_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { +pub fn create_users_with_array_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -184,7 +184,7 @@ pub fn create_users_with_array_input(configuration: &configuration::Configuratio } /// -pub fn create_users_with_list_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { +pub fn create_users_with_list_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -283,7 +283,7 @@ pub fn delete_user(configuration: &configuration::Configuration, username: &str) } /// -pub fn get_user_by_name(configuration: &configuration::Configuration, username: &str) -> Result> { +pub fn get_user_by_name(configuration: &configuration::Configuration, username: &str) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/action_container.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/action_container.rs index 7e2d9a0717f9..20fcdf51c3fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/action_container.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/action_container.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -14,11 +16,11 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Box, + pub action: Box, } impl ActionContainer { - pub fn new(action: crate::models::Baz) -> ActionContainer { + pub fn new(action: Baz) -> ActionContainer { ActionContainer { action: Box::new(action), } diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/api_response.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/api_response.rs index 1741c9ff9cdd..001383c97f18 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/api_response.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/api_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/array_item_ref_test.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/array_item_ref_test.rs index 7090cc0b636a..1a7d5f38a0b5 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/array_item_ref_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/array_item_ref_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -15,14 +17,14 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ArrayItemRefTest { #[serde(rename = "list_with_array_ref")] - pub list_with_array_ref: Vec>, + pub list_with_array_ref: Vec, #[serde(rename = "list_with_object_ref")] - pub list_with_object_ref: Vec>, + pub list_with_object_ref: Vec, } impl ArrayItemRefTest { /// Test handling of object reference in arrays - pub fn new(list_with_array_ref: Vec>, list_with_object_ref: Vec>) -> ArrayItemRefTest { + pub fn new(list_with_array_ref: Vec, list_with_object_ref: Vec) -> ArrayItemRefTest { ArrayItemRefTest { list_with_array_ref, list_with_object_ref, diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/baz.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/baz.rs index 94f8c5aa6aa4..e572fe204124 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/baz.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/baz.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/category.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/category.rs index e62af6878b9e..067aad5e54fd 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/category.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/category.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/enum_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/enum_array_testing.rs index 4ad77233833a..860f9d02dcf1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/enum_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/enum_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/model_return.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/model_return.rs index d9619444f707..45f12f85fec1 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/model_return.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/model_return.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/nullable_array.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/nullable_array.rs index f177f16192c5..aad44660b5dc 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/nullable_array.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/nullable_array.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/optional_testing.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/optional_testing.rs index e8f7af5c012e..9f24111bd076 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/optional_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/optional_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/order.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/order.rs index e3385c8ff03c..3e916b84b379 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/order.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/order.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/pet.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/pet.rs index 6661e036994b..6097058b792e 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/pet.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/pet.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -17,13 +19,13 @@ pub struct Pet { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "category", skip_serializing_if = "Option::is_none")] - pub category: Option>, + pub category: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "photoUrls")] pub photo_urls: Vec, #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] - pub tags: Option>, + pub tags: Option>, /// pet status in the store #[serde(rename = "status", skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/property_test.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/property_test.rs index e496a02311c4..330649729037 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/property_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/property_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/tag.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/tag.rs index 1786ebec3ac2..d21f0aafd8e6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/tag.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/tag.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/type_testing.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/type_testing.rs index 079ac75daff8..4f0a1819194b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/type_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/type_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/unique_item_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/unique_item_array_testing.rs index 854ca0916ae1..93efbd1aa241 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/unique_item_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/unique_item_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/user.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/user.rs index c52c16ba3162..f8153db61739 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/user.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/user.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md b/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md index 8490ec5d821b..0d690bd0c56f 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/ActionContainer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | [**crate::models::Baz**](Baz.md) | | +**action** | [**Baz**](Baz.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/samples/client/petstore/rust/reqwest/petstore/docs/ArrayItemRefTest.md b/samples/client/petstore/rust/reqwest/petstore/docs/ArrayItemRefTest.md index 616deda7c4b5..2359c95a1866 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/ArrayItemRefTest.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/ArrayItemRefTest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list_with_array_ref** | [**Vec>**](Vec.md) | | -**list_with_object_ref** | [**Vec>**](std::collections::HashMap.md) | | +**list_with_array_ref** | [**Vec**](Vec.md) | | +**list_with_object_ref** | [**Vec**](std::collections::HashMap.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/samples/client/petstore/rust/reqwest/petstore/docs/Pet.md b/samples/client/petstore/rust/reqwest/petstore/docs/Pet.md index 27886889d1d4..e7a72caa16e9 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/Pet.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/Pet.md @@ -5,10 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | Option<**i64**> | | [optional] -**category** | Option<[**crate::models::Category**](Category.md)> | | [optional] +**category** | Option<[**models::Category**](Category.md)> | | [optional] **name** | **String** | | **photo_urls** | **Vec** | | -**tags** | Option<[**Vec**](Tag.md)> | | [optional] +**tags** | Option<[**Vec**](Tag.md)> | | [optional] **status** | Option<**String**> | pet status in the store | [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/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md index 5adc9334151a..d503facb903c 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/PetApi.md @@ -17,7 +17,7 @@ Method | HTTP request | Description ## add_pet -> crate::models::Pet add_pet(pet) +> models::Pet add_pet(pet) Add a new pet to the store @@ -31,7 +31,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -78,7 +78,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_status -> Vec find_pets_by_status(status) +> Vec find_pets_by_status(status) Finds Pets by status Multiple status values can be provided with comma separated strings @@ -92,7 +92,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -108,7 +108,7 @@ Name | Type | Description | Required | Notes ## find_pets_by_tags -> Vec find_pets_by_tags(tags) +> Vec find_pets_by_tags(tags) Finds Pets by tags Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. @@ -122,7 +122,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](Pet.md) +[**Vec**](Pet.md) ### Authorization @@ -138,7 +138,7 @@ Name | Type | Description | Required | Notes ## get_pet_by_id -> crate::models::Pet get_pet_by_id(pet_id) +> models::Pet get_pet_by_id(pet_id) Find pet by ID Returns a single pet @@ -152,7 +152,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -168,7 +168,7 @@ Name | Type | Description | Required | Notes ## update_pet -> crate::models::Pet update_pet(pet) +> models::Pet update_pet(pet) Update an existing pet @@ -182,7 +182,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Pet**](Pet.md) +[**models::Pet**](Pet.md) ### Authorization @@ -230,7 +230,7 @@ Name | Type | Description | Required | Notes ## upload_file -> crate::models::ApiResponse upload_file(pet_id, additional_metadata, file) +> models::ApiResponse upload_file(pet_id, additional_metadata, file) uploads an image @@ -246,7 +246,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::ApiResponse**](ApiResponse.md) +[**models::ApiResponse**](ApiResponse.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md index bdcaa95aa9ed..a513dfa1b5fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/StoreApi.md @@ -70,7 +70,7 @@ This endpoint does not need any parameter. ## get_order_by_id -> crate::models::Order get_order_by_id(order_id) +> models::Order get_order_by_id(order_id) Find purchase order by ID For valid response try integer IDs with value <= 5 or > 10. Other values will generate exceptions @@ -84,7 +84,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization @@ -100,7 +100,7 @@ No authorization required ## place_order -> crate::models::Order place_order(order) +> models::Order place_order(order) Place an order for a pet @@ -114,7 +114,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::Order**](Order.md) +[**models::Order**](Order.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md index ca0c06e06a05..9c26af249127 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/TestingApi.md @@ -36,7 +36,7 @@ No authorization required ## tests_type_testing_get -> crate::models::TypeTesting tests_type_testing_get() +> models::TypeTesting tests_type_testing_get() Route to test the TypeTesting schema ### Parameters @@ -45,7 +45,7 @@ This endpoint does not need any parameter. ### Return type -[**crate::models::TypeTesting**](TypeTesting.md) +[**models::TypeTesting**](TypeTesting.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md b/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md index 03693014b925..d536057ae15a 100644 --- a/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md +++ b/samples/client/petstore/rust/reqwest/petstore/docs/UserApi.md @@ -57,7 +57,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -87,7 +87,7 @@ Creates list of users with given input array Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**user** | [**Vec**](User.md) | List of user object | [required] | +**user** | [**Vec**](User.md) | List of user object | [required] | ### Return type @@ -137,7 +137,7 @@ Name | Type | Description | Required | Notes ## get_user_by_name -> crate::models::User get_user_by_name(username) +> models::User get_user_by_name(username) Get user by user name @@ -151,7 +151,7 @@ Name | Type | Description | Required | Notes ### Return type -[**crate::models::User**](User.md) +[**models::User**](User.md) ### Authorization diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/fake_api.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/fake_api.rs index b89bcb6d1fc0..af7818dd030b 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/fake_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/pet_api.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/pet_api.rs index 34ec704fd24f..c8612c474397 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/pet_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -83,7 +83,7 @@ pub enum UploadFileError { /// -pub fn add_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { +pub fn add_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -149,7 +149,7 @@ pub fn delete_pet(configuration: &configuration::Configuration, pet_id: i64, api } /// Multiple status values can be provided with comma separated strings -pub fn find_pets_by_status(configuration: &configuration::Configuration, status: Vec) -> Result, Error> { +pub fn find_pets_by_status(configuration: &configuration::Configuration, status: Vec) -> Result, Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -184,7 +184,7 @@ pub fn find_pets_by_status(configuration: &configuration::Configuration, status: } /// Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. -pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec) -> Result, Error> { +pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec) -> Result, Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -219,7 +219,7 @@ pub fn find_pets_by_tags(configuration: &configuration::Configuration, tags: Vec } /// Returns a single pet -pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) -> Result> { +pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -255,7 +255,7 @@ pub fn get_pet_by_id(configuration: &configuration::Configuration, pet_id: i64) } /// -pub fn update_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { +pub fn update_pet(configuration: &configuration::Configuration, pet: crate::models::Pet) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -326,7 +326,7 @@ pub fn update_pet_with_form(configuration: &configuration::Configuration, pet_id } /// -pub fn upload_file(configuration: &configuration::Configuration, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Result> { +pub fn upload_file(configuration: &configuration::Configuration, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/store_api.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/store_api.rs index 65269b5c7c91..3ee709fcf1b4 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/store_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/store_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -114,7 +114,7 @@ pub fn get_inventory(configuration: &configuration::Configuration, ) -> Result 10. Other values will generate exceptions -pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i64) -> Result> { +pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i64) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -142,7 +142,7 @@ pub fn get_order_by_id(configuration: &configuration::Configuration, order_id: i } /// -pub fn place_order(configuration: &configuration::Configuration, order: crate::models::Order) -> Result> { +pub fn place_order(configuration: &configuration::Configuration, order: crate::models::Order) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/testing_api.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/testing_api.rs index 9d193f63c7da..f6bca74913ea 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/testing_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -57,7 +57,7 @@ pub fn tests_file_response_get(configuration: &configuration::Configuration, ) - } } -pub fn tests_type_testing_get(configuration: &configuration::Configuration, ) -> Result> { +pub fn tests_type_testing_get(configuration: &configuration::Configuration, ) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore/src/apis/user_api.rs b/samples/client/petstore/rust/reqwest/petstore/src/apis/user_api.rs index edb82c9b8ac0..c157f85bea14 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/apis/user_api.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/apis/user_api.rs @@ -11,7 +11,7 @@ use reqwest; -use crate::{apis::ResponseContent}; +use crate::{apis::ResponseContent, models}; use super::{Error, configuration}; @@ -121,7 +121,7 @@ pub fn create_user(configuration: &configuration::Configuration, user: crate::mo } /// -pub fn create_users_with_array_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { +pub fn create_users_with_array_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -158,7 +158,7 @@ pub fn create_users_with_array_input(configuration: &configuration::Configuratio } /// -pub fn create_users_with_list_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { +pub fn create_users_with_list_input(configuration: &configuration::Configuration, user: Vec) -> Result<(), Error> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; @@ -231,7 +231,7 @@ pub fn delete_user(configuration: &configuration::Configuration, username: &str) } /// -pub fn get_user_by_name(configuration: &configuration::Configuration, username: &str) -> Result> { +pub fn get_user_by_name(configuration: &configuration::Configuration, username: &str) -> Result> { let local_var_configuration = configuration; let local_var_client = &local_var_configuration.client; diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs index 7e2d9a0717f9..20fcdf51c3fa 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/action_container.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -14,11 +16,11 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ActionContainer { #[serde(rename = "action")] - pub action: Box, + pub action: Box, } impl ActionContainer { - pub fn new(action: crate::models::Baz) -> ActionContainer { + pub fn new(action: Baz) -> ActionContainer { ActionContainer { action: Box::new(action), } diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/api_response.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/api_response.rs index 1741c9ff9cdd..001383c97f18 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/api_response.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/api_response.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/array_item_ref_test.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/array_item_ref_test.rs index 7090cc0b636a..1a7d5f38a0b5 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/array_item_ref_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/array_item_ref_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -15,14 +17,14 @@ #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ArrayItemRefTest { #[serde(rename = "list_with_array_ref")] - pub list_with_array_ref: Vec>, + pub list_with_array_ref: Vec, #[serde(rename = "list_with_object_ref")] - pub list_with_object_ref: Vec>, + pub list_with_object_ref: Vec, } impl ArrayItemRefTest { /// Test handling of object reference in arrays - pub fn new(list_with_array_ref: Vec>, list_with_object_ref: Vec>) -> ArrayItemRefTest { + pub fn new(list_with_array_ref: Vec, list_with_object_ref: Vec) -> ArrayItemRefTest { ArrayItemRefTest { list_with_array_ref, list_with_object_ref, diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/baz.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/baz.rs index 94f8c5aa6aa4..e572fe204124 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/baz.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/baz.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/category.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/category.rs index e62af6878b9e..067aad5e54fd 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/category.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/category.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/enum_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/enum_array_testing.rs index 4ad77233833a..860f9d02dcf1 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/enum_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/enum_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/model_return.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/model_return.rs index d9619444f707..45f12f85fec1 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/model_return.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/model_return.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/nullable_array.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/nullable_array.rs index f177f16192c5..aad44660b5dc 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/nullable_array.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/nullable_array.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/optional_testing.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/optional_testing.rs index e8f7af5c012e..9f24111bd076 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/optional_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/optional_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/order.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/order.rs index 089fc80445de..8774db8d4e94 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/order.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/order.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/pet.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/pet.rs index 6661e036994b..6097058b792e 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/pet.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/pet.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * @@ -17,13 +19,13 @@ pub struct Pet { #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "category", skip_serializing_if = "Option::is_none")] - pub category: Option>, + pub category: Option>, #[serde(rename = "name")] pub name: String, #[serde(rename = "photoUrls")] pub photo_urls: Vec, #[serde(rename = "tags", skip_serializing_if = "Option::is_none")] - pub tags: Option>, + pub tags: Option>, /// pet status in the store #[serde(rename = "status", skip_serializing_if = "Option::is_none")] pub status: Option, diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/property_test.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/property_test.rs index e496a02311c4..330649729037 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/property_test.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/property_test.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/tag.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/tag.rs index 1786ebec3ac2..d21f0aafd8e6 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/tag.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/tag.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/type_testing.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/type_testing.rs index 079ac75daff8..4f0a1819194b 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/type_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/type_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/unique_item_array_testing.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/unique_item_array_testing.rs index 854ca0916ae1..93efbd1aa241 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/unique_item_array_testing.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/unique_item_array_testing.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore * diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/user.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/user.rs index c52c16ba3162..f8153db61739 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/user.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/user.rs @@ -1,3 +1,5 @@ +use crate::models; + /* * OpenAPI Petstore *