Skip to content

Commit 0bcfd67

Browse files
committed
Rebuilt rust samples
1 parent e244ec6 commit 0bcfd67

File tree

31 files changed

+13
-57
lines changed

31 files changed

+13
-57
lines changed

docs/generators/rust.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl
3232
|supportMultipleResponses|If set, return type wraps an enum of all possible 2xx schemas. This option is for 'reqwest' and 'reqwest-trait' library only| |false|
3333
|supportTokenSource|If set, add support for google-cloud-token. This option is for 'reqwest' and 'reqwest-trait' library only and requires the 'supportAsync' option| |false|
3434
|topLevelApiClient|Creates a top level `Api` trait and `ApiClient` struct that contain all Apis. This option is for 'reqwest-trait' library only| |false|
35+
|useBonBuilder|Use the bon crate for building parameter types. This option is for the 'reqwest-trait' library only| |false|
3536
|useSingleRequestParameter|Setting this property to true will generate functions with a single argument containing all API endpoint parameters instead of one argument per parameter.| |false|
3637
|withAWSV4Signature|whether to include AWS v4 signature support| |false|
3738

samples/client/others/rust/hyper/api-with-ref-param/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/others/rust/hyper/composed-oneof/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/others/rust/hyper/emptyObject/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/others/rust/hyper/oneOf-array-map/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/others/rust/hyper/oneOf-reuseRef/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ http-body-util = { version = "0.1.2" }
1818
http = "~0.2"
1919
base64 = "~0.7.0"
2020
futures = "^0.3"
21-
22-
[features]

samples/client/others/rust/hyper/oneOf/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/others/rust/reqwest-regression-16119/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

samples/client/others/rust/reqwest/api-with-ref-param/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "multipart"] }
17-
18-
[features]

samples/client/others/rust/reqwest/composed-oneof/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

samples/client/others/rust/reqwest/emptyObject/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

samples/client/others/rust/reqwest/oneOf-array-map/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

samples/client/others/rust/reqwest/oneOf-reuseRef/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ serde_repr = "^0.1"
1313
url = "^2.5"
1414
uuid = { version = "^1.8", features = ["serde", "v4"] }
1515
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
16-
17-
[features]

samples/client/others/rust/reqwest/oneOf/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

samples/client/petstore/rust/hyper/petstore/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,3 @@ http-body-util = { version = "0.1.2" }
1919
http = "~0.2"
2020
base64 = "~0.7.0"
2121
futures = "^0.3"
22-
23-
[features]

samples/client/petstore/rust/hyper0x/petstore/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ hyper-tls = "~0.5"
1818
http = "~0.2"
1919
base64 = "~0.7.0"
2020
futures = "^0.3"
21-
22-
[features]
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.9.0-SNAPSHOT
1+
7.10.0-SNAPSHOT

samples/client/petstore/rust/reqwest-trait/petstore/Cargo.toml

-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,5 @@ uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
async-trait = "^0.1"
1717
reqwest = { version = "^0.12", features = ["json", "multipart"] }
1818
mockall = { version = "^0.13", optional = true}
19-
2019
[features]
2120
mockall = ["dep:mockall"]

samples/client/petstore/rust/reqwest-trait/petstore/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat
99

1010
- API version: 1.0.0
1111
- Package version: 1.0.0
12-
- Generator version: 7.9.0-SNAPSHOT
12+
- Generator version: 7.10.0-SNAPSHOT
1313
- Build package: `org.openapitools.codegen.languages.RustClientCodegen`
1414

1515
## Installation

samples/client/petstore/rust/reqwest-trait/petstore/src/apis/fake_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ impl FakeApiClient {
3434
}
3535
}
3636

37+
38+
3739
#[async_trait]
3840
impl FakeApi for FakeApiClient {
3941
///
@@ -73,8 +75,6 @@ impl FakeApi for FakeApiClient {
7375

7476
}
7577

76-
77-
7878
/// struct for typed errors of method [`test_nullable_required_param`]
7979
#[derive(Debug, Clone, Serialize, Deserialize)]
8080
#[serde(untagged)]

samples/client/petstore/rust/reqwest-trait/petstore/src/apis/pet_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ impl PetApiClient {
4141
}
4242
}
4343

44+
45+
4446
#[async_trait]
4547
impl PetApi for PetApiClient {
4648
///
@@ -325,8 +327,6 @@ impl PetApi for PetApiClient {
325327

326328
}
327329

328-
329-
330330
/// struct for typed errors of method [`add_pet`]
331331
#[derive(Debug, Clone, Serialize, Deserialize)]
332332
#[serde(untagged)]

samples/client/petstore/rust/reqwest-trait/petstore/src/apis/store_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ impl StoreApiClient {
3737
}
3838
}
3939

40+
41+
4042
#[async_trait]
4143
impl StoreApi for StoreApiClient {
4244
/// For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors
@@ -162,8 +164,6 @@ impl StoreApi for StoreApiClient {
162164

163165
}
164166

165-
166-
167167
/// struct for typed errors of method [`delete_order`]
168168
#[derive(Debug, Clone, Serialize, Deserialize)]
169169
#[serde(untagged)]

samples/client/petstore/rust/reqwest-trait/petstore/src/apis/testing_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ impl TestingApiClient {
3535
}
3636
}
3737

38+
39+
3840
#[async_trait]
3941
impl TestingApi for TestingApiClient {
4042
async fn tests_file_response_get<>(&self, ) -> Result<std::path::PathBuf, Error<TestsFileResponseGetError>> {
@@ -93,8 +95,6 @@ impl TestingApi for TestingApiClient {
9395

9496
}
9597

96-
97-
9898
/// struct for typed errors of method [`tests_file_response_get`]
9999
#[derive(Debug, Clone, Serialize, Deserialize)]
100100
#[serde(untagged)]

samples/client/petstore/rust/reqwest-trait/petstore/src/apis/user_api.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ impl UserApiClient {
4141
}
4242
}
4343

44+
45+
4446
#[async_trait]
4547
impl UserApi for UserApiClient {
4648
/// This can only be done by the logged in user.
@@ -323,8 +325,6 @@ impl UserApi for UserApiClient {
323325

324326
}
325327

326-
327-
328328
/// struct for typed errors of method [`create_user`]
329329
#[derive(Debug, Clone, Serialize, Deserialize)]
330330
#[serde(untagged)]

samples/client/petstore/rust/reqwest/name-mapping/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ serde_repr = "^0.1"
1313
url = "^2.5"
1414
uuid = { version = "^1.8", features = ["serde", "v4"] }
1515
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
16-
17-
[features]

samples/client/petstore/rust/reqwest/petstore-async-middleware/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,3 @@ url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "multipart"] }
1717
reqwest-middleware = { version = "^0.3", features = ["json", "multipart"] }
18-
19-
[features]

samples/client/petstore/rust/reqwest/petstore-async-tokensource/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ reqwest = { version = "^0.12", features = ["json", "multipart"] }
1717
async-trait = "^0.1"
1818
# TODO: propose to Yoshidan to externalize this as non google related crate, so that it can easily be extended for other cloud providers.
1919
google-cloud-token = "^0.1"
20-
21-
[features]

samples/client/petstore/rust/reqwest/petstore-async/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "multipart"] }
17-
18-
[features]

samples/client/petstore/rust/reqwest/petstore-avoid-box/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "multipart"] }
17-
18-
[features]

samples/client/petstore/rust/reqwest/petstore-awsv4signature/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,3 @@ aws-sigv4 = "0.3.0"
1717
http = "0.2.5"
1818
secrecy = "0.8.0"
1919
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
20-
21-
[features]

samples/client/petstore/rust/reqwest/petstore/Cargo.toml

-2
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,3 @@ serde_repr = "^0.1"
1414
url = "^2.5"
1515
uuid = { version = "^1.8", features = ["serde", "v4"] }
1616
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
17-
18-
[features]

0 commit comments

Comments
 (0)