Skip to content

Commit 0f49b59

Browse files
committed
fixup! [Rust] Update samples
1 parent ef09a5b commit 0f49b59

File tree

8 files changed

+160
-0
lines changed

8 files changed

+160
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ListDeepParameter
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**foo** | [**models::ListDeepParameterFoo**](list_deep_parameter_foo.md) | |
8+
**bar** | **i32** | |
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ListDeepParameterFoo
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**baz** | **i32** | |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# ListNotRequiredDeepParameter
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**foo** | Option<[**models::ListNotRequiredDeepParameterFoo**](list_notRequiredDeep_parameter_foo.md)> | | [optional]
8+
**bar** | Option<**i32**> | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+
12+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ListNotRequiredDeepParameterFoo
2+
3+
## Properties
4+
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**baz** | Option<**i32**> | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* OpenAPI Petstore
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
*
8+
* Generated by: https://openapi-generator.tech
9+
*/
10+
11+
use crate::models;
12+
use serde::{Deserialize, Serialize};
13+
14+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15+
pub struct ListDeepParameter {
16+
#[serde(rename = "foo")]
17+
pub foo: Box<models::ListDeepParameterFoo>,
18+
#[serde(rename = "bar")]
19+
pub bar: i32,
20+
}
21+
22+
impl ListDeepParameter {
23+
pub fn new(foo: models::ListDeepParameterFoo, bar: i32) -> ListDeepParameter {
24+
ListDeepParameter {
25+
foo: Box::new(foo),
26+
bar,
27+
}
28+
}
29+
}
30+
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* OpenAPI Petstore
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
*
8+
* Generated by: https://openapi-generator.tech
9+
*/
10+
11+
use crate::models;
12+
use serde::{Deserialize, Serialize};
13+
14+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15+
pub struct ListDeepParameterFoo {
16+
#[serde(rename = "baz")]
17+
pub baz: i32,
18+
}
19+
20+
impl ListDeepParameterFoo {
21+
pub fn new(baz: i32) -> ListDeepParameterFoo {
22+
ListDeepParameterFoo {
23+
baz,
24+
}
25+
}
26+
}
27+
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* OpenAPI Petstore
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
*
8+
* Generated by: https://openapi-generator.tech
9+
*/
10+
11+
use crate::models;
12+
use serde::{Deserialize, Serialize};
13+
14+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15+
pub struct ListNotRequiredDeepParameter {
16+
#[serde(rename = "foo", skip_serializing_if = "Option::is_none")]
17+
pub foo: Option<Box<models::ListNotRequiredDeepParameterFoo>>,
18+
#[serde(rename = "bar", skip_serializing_if = "Option::is_none")]
19+
pub bar: Option<i32>,
20+
}
21+
22+
impl ListNotRequiredDeepParameter {
23+
pub fn new() -> ListNotRequiredDeepParameter {
24+
ListNotRequiredDeepParameter {
25+
foo: None,
26+
bar: None,
27+
}
28+
}
29+
}
30+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/*
2+
* OpenAPI Petstore
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
*
8+
* Generated by: https://openapi-generator.tech
9+
*/
10+
11+
use crate::models;
12+
use serde::{Deserialize, Serialize};
13+
14+
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15+
pub struct ListNotRequiredDeepParameterFoo {
16+
#[serde(rename = "baz", skip_serializing_if = "Option::is_none")]
17+
pub baz: Option<i32>,
18+
}
19+
20+
impl ListNotRequiredDeepParameterFoo {
21+
pub fn new() -> ListNotRequiredDeepParameterFoo {
22+
ListNotRequiredDeepParameterFoo {
23+
baz: None,
24+
}
25+
}
26+
}
27+

0 commit comments

Comments
 (0)