forked from loafle/openapi-generator-original
update samples
This commit is contained in:
@@ -19,7 +19,7 @@ sidebar_label: rust-server
|
||||
| Type/Alias | Instantiated By |
|
||||
| ---------- | --------------- |
|
||||
|array|Vec|
|
||||
|map|Map|
|
||||
|map|std::collections::HashMap|
|
||||
|
||||
|
||||
## LANGUAGE PRIMITIVES
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
@@ -669,7 +669,7 @@ impl<S, C> Api<C> for Client<S, C> where
|
||||
Err(e) => return Err(ApiError(format!("Unable to create X-Span ID header value: {}", e)))
|
||||
});
|
||||
|
||||
let mut response = client_service.call(request)
|
||||
let mut response = client_service.call((request, context.clone()))
|
||||
.map_err(|e| ApiError(format!("No response received: {}", e))).await?;
|
||||
|
||||
match response.status().as_u16() {
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
.cargo/config
|
||||
.gitignore
|
||||
.openapi-generator-ignore
|
||||
Cargo.toml
|
||||
README.md
|
||||
api/openapi.yaml
|
||||
|
||||
Reference in New Issue
Block a user