forked from loafle/openapi-generator-original
Bump Rust edition to 2021 and a few crates (#18608)
* bump Rust edition to 2021, update a few creates * bump Rust edition to 2021, update a few creates
This commit is contained in:
parent
b67a019cf9
commit
03389dfdbd
@ -17,7 +17,7 @@ license = "{{.}}"
|
|||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
{{/licenseInfo}}
|
{{/licenseInfo}}
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
{{#publishRustRegistry}}
|
{{#publishRustRegistry}}
|
||||||
publish = ["{{.}}"]
|
publish = ["{{.}}"]
|
||||||
{{/publishRustRegistry}}
|
{{/publishRustRegistry}}
|
||||||
|
@ -17,7 +17,7 @@ license = "{{.}}"
|
|||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
{{/licenseInfo}}
|
{{/licenseInfo}}
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
{{#publishRustRegistry}}
|
{{#publishRustRegistry}}
|
||||||
publish = ["{{.}}"]
|
publish = ["{{.}}"]
|
||||||
{{/publishRustRegistry}}
|
{{/publishRustRegistry}}
|
||||||
@ -32,14 +32,13 @@ homepage = "{{.}}
|
|||||||
{{/homePageUrl}}
|
{{/homePageUrl}}
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
{{#serdeWith}}
|
{{#serdeWith}}
|
||||||
serde_with = { version = "^3", default-features = false, features = ["base64", "std", "macros"] }
|
serde_with = { version = "^3.8", default-features = false, features = ["base64", "std", "macros"] }
|
||||||
{{/serdeWith}}
|
{{/serdeWith}}
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
{{#hyper}}
|
{{#hyper}}
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
@ -54,16 +53,15 @@ secrecy = "0.8.0"
|
|||||||
{{/withAWSV4Signature}}
|
{{/withAWSV4Signature}}
|
||||||
{{#reqwest}}
|
{{#reqwest}}
|
||||||
{{^supportAsync}}
|
{{^supportAsync}}
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
{{#supportMiddleware}}
|
||||||
features = ["json", "blocking", "multipart"]
|
reqwest-middleware = { version = "^0.3", features = ["json", "blocking", "multipart"] }
|
||||||
|
{{/supportMiddleware}}
|
||||||
{{/supportAsync}}
|
{{/supportAsync}}
|
||||||
{{#supportAsync}}
|
{{#supportAsync}}
|
||||||
|
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
||||||
{{#supportMiddleware}}
|
{{#supportMiddleware}}
|
||||||
reqwest-middleware = "0.2.0"
|
reqwest-middleware = { version = "^0.3", features = ["json", "multipart"] }
|
||||||
{{/supportMiddleware}}
|
{{/supportMiddleware}}
|
||||||
[dependencies.reqwest]
|
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "multipart"]
|
|
||||||
{{/supportAsync}}
|
{{/supportAsync}}
|
||||||
{{/reqwest}}
|
{{/reqwest}}
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{{>partial_header}}
|
{{>partial_header}}
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
{{#models}}
|
{{#models}}
|
||||||
{{#model}}
|
{{#model}}
|
||||||
{{^isEnum}}{{#vendorExtensions.x-rust-has-byte-array}}
|
{{^isEnum}}{{#vendorExtensions.x-rust-has-byte-array}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{{>partial_header}}
|
{{>partial_header}}
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
@ -174,7 +174,7 @@ pub {{#supportAsync}}async {{/supportAsync}}fn {{{operationId}}}(configuration:
|
|||||||
{{/bodyParams}}
|
{{/bodyParams}}
|
||||||
{{/hasBodyParam}}
|
{{/hasBodyParam}}
|
||||||
{{^hasBodyParam}}
|
{{^hasBodyParam}}
|
||||||
&"",
|
"",
|
||||||
{{/hasBodyParam}}
|
{{/hasBodyParam}}
|
||||||
) {
|
) {
|
||||||
Ok(new_headers) => new_headers,
|
Ok(new_headers) => new_headers,
|
||||||
|
@ -64,7 +64,7 @@ impl AWSv4Key {
|
|||||||
value.to_str().expect("header value should be a string").to_string()));
|
value.to_str().expect("header value should be a string").to_string()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Ok(additional_headers);
|
Ok(additional_headers)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{{/withAWSV4Signature}}
|
{{/withAWSV4Signature}}
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
[workspace]
|
[workspace]
|
||||||
members = ["hyper/*", "reqwest/*", "reqwest-regression-16119"]
|
members = ["hyper/*", "reqwest/*", "reqwest-regression-16119"]
|
||||||
|
resolver = "2"
|
||||||
|
@ -5,14 +5,13 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
///
|
///
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||||
|
@ -5,14 +5,13 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjA {
|
pub struct ObjA {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjB {
|
pub struct ObjB {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjC {
|
pub struct ObjC {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjD {
|
pub struct ObjD {
|
||||||
|
@ -5,14 +5,13 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "Ensure rust supports empty objects using serde::Value"
|
description = "Ensure rust supports empty objects using serde::Value"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct EmptyObject {
|
pub struct EmptyObject {
|
||||||
|
@ -5,14 +5,13 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Apple {
|
pub struct Apple {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Grape {
|
pub struct Grape {
|
||||||
|
@ -4,14 +4,13 @@ version = "1.0.0"
|
|||||||
authors = ["OpenAPI Generator team and contributors"]
|
authors = ["OpenAPI Generator team and contributors"]
|
||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Apple {
|
pub struct Apple {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Banana {
|
pub struct Banana {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "fruitType")]
|
#[serde(tag = "fruitType")]
|
||||||
|
@ -5,14 +5,13 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "This tests for a oneOf interface representation "
|
description = "This tests for a oneOf interface representation "
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
hyper = { version = "~0.14", features = ["full"] }
|
hyper = { version = "~0.14", features = ["full"] }
|
||||||
hyper-tls = "~0.5"
|
hyper-tls = "~0.5"
|
||||||
http = "~0.2"
|
http = "~0.2"
|
||||||
|
@ -29,19 +29,19 @@ impl From<(hyper::StatusCode, hyper::body::Body)> for Error {
|
|||||||
|
|
||||||
impl From<http::Error> for Error {
|
impl From<http::Error> for Error {
|
||||||
fn from(e: http::Error) -> Self {
|
fn from(e: http::Error) -> Self {
|
||||||
return Error::Http(e)
|
Error::Http(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<hyper::Error> for Error {
|
impl From<hyper::Error> for Error {
|
||||||
fn from(e: hyper::Error) -> Self {
|
fn from(e: hyper::Error) -> Self {
|
||||||
return Error::Hyper(e)
|
Error::Hyper(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<serde_json::Error> for Error {
|
impl From<serde_json::Error> for Error {
|
||||||
fn from(e: serde_json::Error) -> Self {
|
fn from(e: serde_json::Error) -> Self {
|
||||||
return Error::Serde(e)
|
Error::Serde(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// Addressable : Base schema for addressable entities
|
/// Addressable : Base schema for addressable entities
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Apple {
|
pub struct Apple {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Banana {
|
pub struct Banana {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Bar {
|
pub struct Bar {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct BarCreate {
|
pub struct BarCreate {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct BarRef {
|
pub struct BarRef {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "@type")]
|
#[serde(tag = "@type")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// EntityRef : Entity reference schema to be use for all entityRef class.
|
/// EntityRef : Entity reference schema to be use for all entityRef class.
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Extensible {
|
pub struct Extensible {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Foo {
|
pub struct Foo {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct FooRef {
|
pub struct FooRef {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "@type")]
|
#[serde(tag = "@type")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "fruitType")]
|
#[serde(tag = "fruitType")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
///
|
///
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Pasta {
|
pub struct Pasta {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Pizza {
|
pub struct Pizza {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct PizzaSpeziale {
|
pub struct PizzaSpeziale {
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Parent {
|
pub struct Parent {
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
///
|
///
|
||||||
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "realtype")]
|
#[serde(tag = "realtype")]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjA {
|
pub struct ObjA {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjB {
|
pub struct ObjB {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjC {
|
pub struct ObjC {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct ObjD {
|
pub struct ObjD {
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "Ensure rust supports empty objects using serde::Value"
|
description = "Ensure rust supports empty objects using serde::Value"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct EmptyObject {
|
pub struct EmptyObject {
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Apple {
|
pub struct Apple {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Grape {
|
pub struct Grape {
|
||||||
|
@ -4,14 +4,11 @@ version = "1.0.0"
|
|||||||
authors = ["OpenAPI Generator team and contributors"]
|
authors = ["OpenAPI Generator team and contributors"]
|
||||||
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Apple {
|
pub struct Apple {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
pub struct Banana {
|
pub struct Banana {
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
#[serde(tag = "fruitType")]
|
#[serde(tag = "fruitType")]
|
||||||
|
@ -5,14 +5,11 @@ authors = ["OpenAPI Generator team and contributors"]
|
|||||||
description = "This tests for a oneOf interface representation "
|
description = "This tests for a oneOf interface representation "
|
||||||
# Override this license by providing a License Object in the OpenAPI.
|
# Override this license by providing a License Object in the OpenAPI.
|
||||||
license = "Unlicense"
|
license = "Unlicense"
|
||||||
edition = "2018"
|
edition = "2021"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
serde = "^1.0"
|
serde = { version = "^1.0", features = ["derive"] }
|
||||||
serde_derive = "^1.0"
|
|
||||||
serde_json = "^1.0"
|
serde_json = "^1.0"
|
||||||
url = "^2.2"
|
url = "^2.5"
|
||||||
uuid = { version = "^1.0", features = ["serde", "v4"] }
|
uuid = { version = "^1.8", features = ["serde", "v4"] }
|
||||||
[dependencies.reqwest]
|
reqwest = { version = "^0.12", features = ["json", "blocking", "multipart"] }
|
||||||
version = "^0.11"
|
|
||||||
features = ["json", "blocking", "multipart"]
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
|
|
||||||
use reqwest;
|
use reqwest;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
use crate::{apis::ResponseContent, models};
|
use crate::{apis::ResponseContent, models};
|
||||||
use super::{Error, configuration};
|
use super::{Error, configuration};
|
||||||
|
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
#![allow(unused_imports)]
|
#![allow(unused_imports)]
|
||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
|
|
||||||
#[macro_use]
|
|
||||||
extern crate serde_derive;
|
|
||||||
|
|
||||||
extern crate serde;
|
extern crate serde;
|
||||||
extern crate serde_json;
|
extern crate serde_json;
|
||||||
extern crate url;
|
extern crate url;
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use crate::models;
|
use crate::models;
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// Addressable : Base schema for addressable entities
|
/// Addressable : Base schema for addressable entities
|
||||||
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user