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 33ae00f447b..6e1c952f2a4 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 @@ -538,6 +538,12 @@ public class RustClientCodegen extends AbstractRustCodegen implements CodegenCon return (outputFolder + File.separator + modelFolder).replace("/", File.separator); } + @Override + public String modelFilename(String templateName, String modelName) { + String suffix = modelTemplateFiles().get(templateName); + return modelFileFolder() + File.separator + toModelFilename(modelName) + suffix; + } + @Override public String apiDocFileFolder() { return (outputFolder + "/" + apiDocPath).replace('/', File.separatorChar); diff --git a/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml index 983c6989dcf..a907621754e 100644 --- a/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/rust/petstore.yaml @@ -1078,4 +1078,13 @@ components: required: - type - speed - + DuplicateTest: + type: object + properties: + name: + type: string + Duplicatetest: # explicitly testing the same name with different casing + type: object + properties: + name: + type: string diff --git a/samples/client/petstore/rust/hyper/petstore/.openapi-generator/FILES b/samples/client/petstore/rust/hyper/petstore/.openapi-generator/FILES index b493e74d9ef..ca8f580456b 100644 --- a/samples/client/petstore/rust/hyper/petstore/.openapi-generator/FILES +++ b/samples/client/petstore/rust/hyper/petstore/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -47,6 +49,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/hyper/petstore/README.md b/samples/client/petstore/rust/hyper/petstore/README.md index 967ae70f6e5..1f71adb9afa 100644 --- a/samples/client/petstore/rust/hyper/petstore/README.md +++ b/samples/client/petstore/rust/hyper/petstore/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/hyper/petstore/docs/DuplicateTest.md b/samples/client/petstore/rust/hyper/petstore/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/hyper/petstore/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/hyper/petstore/docs/Duplicatetest.md b/samples/client/petstore/rust/hyper/petstore/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/hyper/petstore/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/duplicate_test.rs b/samples/client/petstore/rust/hyper/petstore/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/hyper/petstore/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/duplicatetest.rs b/samples/client/petstore/rust/hyper/petstore/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/hyper/petstore/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/hyper/petstore/src/models/mod.rs b/samples/client/petstore/rust/hyper/petstore/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/models/mod.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/hyper0x/petstore/.openapi-generator/FILES b/samples/client/petstore/rust/hyper0x/petstore/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/.openapi-generator/FILES +++ b/samples/client/petstore/rust/hyper0x/petstore/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/hyper0x/petstore/README.md b/samples/client/petstore/rust/hyper0x/petstore/README.md index dccdf732f43..75de658ecaf 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/README.md +++ b/samples/client/petstore/rust/hyper0x/petstore/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/DuplicateTest.md b/samples/client/petstore/rust/hyper0x/petstore/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/hyper0x/petstore/docs/Duplicatetest.md b/samples/client/petstore/rust/hyper0x/petstore/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/hyper0x/petstore/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicate_test.rs b/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicatetest.rs b/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/hyper0x/petstore/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/hyper0x/petstore/src/models/mod.rs b/samples/client/petstore/rust/hyper0x/petstore/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/hyper0x/petstore/src/models/mod.rs +++ b/samples/client/petstore/rust/hyper0x/petstore/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest-trait/petstore/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest-trait/petstore/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/README.md b/samples/client/petstore/rust/reqwest-trait/petstore/README.md index f9c2b616164..65cafcaa65d 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/README.md +++ b/samples/client/petstore/rust/reqwest-trait/petstore/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest-trait/petstore/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest-trait/petstore/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest-trait/petstore/src/models/mod.rs b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest-trait/petstore/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest-trait/petstore/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-async-middleware/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md index 51cb02c3880..01492e26db9 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-middleware/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md index 037cbd978d4..f5fd4ab16c5 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async-tokensource/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-async/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-async/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-async/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-async/README.md b/samples/client/petstore/rust/reqwest/petstore-async/README.md index 515d5641216..efa163c4a2c 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-async/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-async/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-async/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-async/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-async/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-async/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-avoid-box/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md index 31c136905c0..35cc9a9cb4d 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-avoid-box/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md index 9ee940fa0bd..39d368b7ced 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-awsv4signature/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/.openapi-generator/FILES index 4b93759e464..e47fbb0db59 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/.openapi-generator/FILES @@ -9,6 +9,8 @@ docs/FooApiResponse.md docs/FooArrayItemRefTest.md docs/FooBaz.md docs/FooCategory.md +docs/FooDuplicateTest.md +docs/FooDuplicatetest.md docs/FooEnumArrayTesting.md docs/FooNullableArray.md docs/FooNumericEnumTesting.md @@ -45,6 +47,8 @@ src/models/foo_api_response.rs src/models/foo_array_item_ref_test.rs src/models/foo_baz.rs src/models/foo_category.rs +src/models/foo_duplicate_test.rs +src/models/foo_duplicatetest.rs src/models/foo_enum_array_testing.rs src/models/foo_nullable_array.rs src/models/foo_numeric_enum_testing.rs diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md index 7f4ea765bf7..1b9fcdef894 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [FooArrayItemRefTest](docs/FooArrayItemRefTest.md) - [FooBaz](docs/FooBaz.md) - [FooCategory](docs/FooCategory.md) + - [FooDuplicateTest](docs/FooDuplicateTest.md) + - [FooDuplicatetest](docs/FooDuplicatetest.md) - [FooEnumArrayTesting](docs/FooEnumArrayTesting.md) - [FooNullableArray](docs/FooNullableArray.md) - [FooNumericEnumTesting](docs/FooNumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicateTest.md new file mode 100644 index 00000000000..a8c013902bc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicateTest.md @@ -0,0 +1,11 @@ +# FooDuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicatetest.md b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicatetest.md new file mode 100644 index 00000000000..9d373ccabc2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/docs/FooDuplicatetest.md @@ -0,0 +1,11 @@ +# FooDuplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicate_test.rs new file mode 100644 index 00000000000..8c2465516b2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FooDuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl FooDuplicateTest { + pub fn new() -> FooDuplicateTest { + FooDuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicatetest.rs new file mode 100644 index 00000000000..cb03e3cdb9d --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/foo_duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct FooDuplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl FooDuplicatetest { + pub fn new() -> FooDuplicatetest { + FooDuplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/mod.rs index fc3f2bacb46..b2c2f9214c6 100644 --- a/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore-model-name-prefix/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod foo_baz; pub use self::foo_baz::FooBaz; pub mod foo_category; pub use self::foo_category::FooCategory; +pub mod foo_duplicate_test; +pub use self::foo_duplicate_test::FooDuplicateTest; +pub mod foo_duplicatetest; +pub use self::foo_duplicatetest::FooDuplicatetest; pub mod foo_enum_array_testing; pub use self::foo_enum_array_testing::FooEnumArrayTesting; pub mod foo_nullable_array; diff --git a/samples/client/petstore/rust/reqwest/petstore/.openapi-generator/FILES b/samples/client/petstore/rust/reqwest/petstore/.openapi-generator/FILES index b4b855f56c7..82dd159124b 100644 --- a/samples/client/petstore/rust/reqwest/petstore/.openapi-generator/FILES +++ b/samples/client/petstore/rust/reqwest/petstore/.openapi-generator/FILES @@ -8,6 +8,8 @@ docs/ApiResponse.md docs/ArrayItemRefTest.md docs/Baz.md docs/Category.md +docs/DuplicateTest.md +docs/Duplicatetest.md docs/EnumArrayTesting.md docs/FakeApi.md docs/NullableArray.md @@ -45,6 +47,8 @@ src/models/api_response.rs src/models/array_item_ref_test.rs src/models/baz.rs src/models/category.rs +src/models/duplicate_test.rs +src/models/duplicatetest.rs src/models/enum_array_testing.rs src/models/mod.rs src/models/model_ref.rs diff --git a/samples/client/petstore/rust/reqwest/petstore/README.md b/samples/client/petstore/rust/reqwest/petstore/README.md index f9c2b616164..65cafcaa65d 100644 --- a/samples/client/petstore/rust/reqwest/petstore/README.md +++ b/samples/client/petstore/rust/reqwest/petstore/README.md @@ -61,6 +61,8 @@ Class | Method | HTTP request | Description - [ArrayItemRefTest](docs/ArrayItemRefTest.md) - [Baz](docs/Baz.md) - [Category](docs/Category.md) + - [DuplicateTest](docs/DuplicateTest.md) + - [Duplicatetest](docs/Duplicatetest.md) - [EnumArrayTesting](docs/EnumArrayTesting.md) - [NullableArray](docs/NullableArray.md) - [NumericEnumTesting](docs/NumericEnumTesting.md) diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/DuplicateTest.md b/samples/client/petstore/rust/reqwest/petstore/docs/DuplicateTest.md new file mode 100644 index 00000000000..b9dd67677d2 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore/docs/DuplicateTest.md @@ -0,0 +1,11 @@ +# DuplicateTest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore/docs/Duplicatetest.md b/samples/client/petstore/rust/reqwest/petstore/docs/Duplicatetest.md new file mode 100644 index 00000000000..dab029dbf55 --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore/docs/Duplicatetest.md @@ -0,0 +1,11 @@ +# Duplicatetest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/duplicate_test.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/duplicate_test.rs new file mode 100644 index 00000000000..a27e36772fc --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/duplicate_test.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct DuplicateTest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl DuplicateTest { + pub fn new() -> DuplicateTest { + DuplicateTest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/duplicatetest.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/duplicatetest.rs new file mode 100644 index 00000000000..f50f7b84ecb --- /dev/null +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/duplicatetest.rs @@ -0,0 +1,27 @@ +/* + * OpenAPI Petstore + * + * This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters. + * + * The version of the OpenAPI document: 1.0.0 + * + * Generated by: https://openapi-generator.tech + */ + +use crate::models; +use serde::{Deserialize, Serialize}; + +#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] +pub struct Duplicatetest { + #[serde(rename = "name", skip_serializing_if = "Option::is_none")] + pub name: Option, +} + +impl Duplicatetest { + pub fn new() -> Duplicatetest { + Duplicatetest { + name: None, + } + } +} + diff --git a/samples/client/petstore/rust/reqwest/petstore/src/models/mod.rs b/samples/client/petstore/rust/reqwest/petstore/src/models/mod.rs index 70b354278ab..35c70822ca8 100644 --- a/samples/client/petstore/rust/reqwest/petstore/src/models/mod.rs +++ b/samples/client/petstore/rust/reqwest/petstore/src/models/mod.rs @@ -10,6 +10,10 @@ pub mod baz; pub use self::baz::Baz; pub mod category; pub use self::category::Category; +pub mod duplicate_test; +pub use self::duplicate_test::DuplicateTest; +pub mod duplicatetest; +pub use self::duplicatetest::Duplicatetest; pub mod enum_array_testing; pub use self::enum_array_testing::EnumArrayTesting; pub mod nullable_array;