diff --git a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/client.rs b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/client.rs index 0702fb3c7520..5554552ee23e 100644 --- a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/client.rs +++ b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -11,7 +11,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { default_api: Box::new(crate::apis::DefaultApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/configuration.rs b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/configuration.rs index a36bab029a63..ee8e15a6c4d8 100644 --- a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use api_ref_param_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use api_ref_param_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/default_api.rs b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/default_api.rs index 03e9e272f459..9f834ca3f342 100644 --- a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/default_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,26 +24,26 @@ use super::request as __internal_request; pub struct DefaultApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl DefaultApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> DefaultApiClient { + pub fn new(configuration: Arc>) -> DefaultApiClient { DefaultApiClient { configuration, } } } -pub trait DefaultApi { - fn demo_color_get(&self, color: models::Color) -> Pin>>>; +pub trait DefaultApi: Send { + fn demo_color_get(&self, color: models::Color) -> Pin> + Send>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn demo_color_get(&self, color: models::Color) -> Pin>>> { + fn demo_color_get(&self, color: models::Color) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/demo/{color}".to_string()) ; req = req.with_path_param("color".to_string(), color.to_string()); diff --git a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/request.rs b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/api-with-ref-param/src/apis/request.rs +++ b/samples/client/others/rust/hyper/api-with-ref-param/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/others/rust/hyper/composed-oneof/src/apis/client.rs b/samples/client/others/rust/hyper/composed-oneof/src/apis/client.rs index 0702fb3c7520..5554552ee23e 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/apis/client.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -11,7 +11,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { default_api: Box::new(crate::apis::DefaultApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/composed-oneof/src/apis/configuration.rs b/samples/client/others/rust/hyper/composed-oneof/src/apis/configuration.rs index 8f7d059ecbb6..d3dcd9886195 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use composed_oneof_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use composed_oneof_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs b/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs index 6b8604dd916e..e596f652ffec 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/apis/default_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,27 +24,27 @@ use super::request as __internal_request; pub struct DefaultApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl DefaultApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> DefaultApiClient { + pub fn new(configuration: Arc>) -> DefaultApiClient { DefaultApiClient { configuration, } } } -pub trait DefaultApi { - fn create_state(&self, create_state_request: models::CreateStateRequest) -> Pin>>>; - fn get_state(&self, ) -> Pin>>>; +pub trait DefaultApi: Send { + fn create_state(&self, create_state_request: models::CreateStateRequest) -> Pin> + Send>>; + fn get_state(&self, ) -> Pin> + Send>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_state(&self, create_state_request: models::CreateStateRequest) -> Pin>>> { + fn create_state(&self, create_state_request: models::CreateStateRequest) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/state".to_string()) ; req = req.with_body_param(create_state_request); @@ -54,7 +54,7 @@ implDefaultApi for DefaultApiClient } #[allow(unused_mut)] - fn get_state(&self, ) -> Pin>>> { + fn get_state(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/state".to_string()) ; diff --git a/samples/client/others/rust/hyper/composed-oneof/src/apis/request.rs b/samples/client/others/rust/hyper/composed-oneof/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/composed-oneof/src/apis/request.rs +++ b/samples/client/others/rust/hyper/composed-oneof/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/others/rust/hyper/emptyObject/src/apis/client.rs b/samples/client/others/rust/hyper/emptyObject/src/apis/client.rs index 0702fb3c7520..5554552ee23e 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/apis/client.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -11,7 +11,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { default_api: Box::new(crate::apis::DefaultApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/emptyObject/src/apis/configuration.rs b/samples/client/others/rust/hyper/emptyObject/src/apis/configuration.rs index 0576e0bfa599..c43936dd19a2 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use empty_object_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use empty_object_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs b/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs index b5d0f3e85fbf..aa715fe38baa 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/apis/default_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,26 +24,26 @@ use super::request as __internal_request; pub struct DefaultApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl DefaultApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> DefaultApiClient { + pub fn new(configuration: Arc>) -> DefaultApiClient { DefaultApiClient { configuration, } } } -pub trait DefaultApi { - fn endpoint_get(&self, ) -> Pin>>>; +pub trait DefaultApi: Send { + fn endpoint_get(&self, ) -> Pin> + Send>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn endpoint_get(&self, ) -> Pin>>> { + fn endpoint_get(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/endpoint".to_string()) ; diff --git a/samples/client/others/rust/hyper/emptyObject/src/apis/request.rs b/samples/client/others/rust/hyper/emptyObject/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/emptyObject/src/apis/request.rs +++ b/samples/client/others/rust/hyper/emptyObject/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/client.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/client.rs index 0702fb3c7520..5554552ee23e 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/client.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -11,7 +11,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { default_api: Box::new(crate::apis::DefaultApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/configuration.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/configuration.rs index 14b8ac197b80..2317d8c54d19 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use oneof_array_map_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use oneof_array_map_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs index 219604dba071..aae6bdfb9020 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/default_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,27 +24,27 @@ use super::request as __internal_request; pub struct DefaultApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl DefaultApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> DefaultApiClient { + pub fn new(configuration: Arc>) -> DefaultApiClient { DefaultApiClient { configuration, } } } -pub trait DefaultApi { - fn root_get(&self, ) -> Pin>>>; - fn test(&self, body: Option) -> Pin>>>; +pub trait DefaultApi: Send { + fn root_get(&self, ) -> Pin> + Send>>; + fn test(&self, body: Option) -> Pin> + Send>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn root_get(&self, ) -> Pin>>> { + fn root_get(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/".to_string()) ; @@ -52,7 +52,7 @@ implDefaultApi for DefaultApiClient } #[allow(unused_mut)] - fn test(&self, body: Option) -> Pin>>> { + fn test(&self, body: Option) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::PUT, "/".to_string()) ; req = req.with_body_param(body); diff --git a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/request.rs b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/oneOf-array-map/src/apis/request.rs +++ b/samples/client/others/rust/hyper/oneOf-array-map/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/client.rs b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/client.rs index 0702fb3c7520..5554552ee23e 100644 --- a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/client.rs +++ b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -11,7 +11,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { default_api: Box::new(crate::apis::DefaultApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/configuration.rs b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/configuration.rs index 974ec289c31a..5a8d201fc028 100644 --- a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use oneof_reuse_ref_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use oneof_reuse_ref_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/default_api.rs b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/default_api.rs index 6d193a52b4ea..eaef8ae416fe 100644 --- a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/default_api.rs +++ b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/default_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,26 +24,26 @@ use super::request as __internal_request; pub struct DefaultApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl DefaultApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> DefaultApiClient { + pub fn new(configuration: Arc>) -> DefaultApiClient { DefaultApiClient { configuration, } } } -pub trait DefaultApi { - fn get_fruit(&self, ) -> Pin>>>; +pub trait DefaultApi: Send { + fn get_fruit(&self, ) -> Pin> + Send>>; } implDefaultApi for DefaultApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn get_fruit(&self, ) -> Pin>>> { + fn get_fruit(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/example".to_string()) ; diff --git a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/request.rs b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/request.rs +++ b/samples/client/others/rust/hyper/oneOf-reuseRef/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs b/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs index f00ea150c31d..137538329a22 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/bar_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,26 +24,26 @@ use super::request as __internal_request; pub struct BarApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl BarApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> BarApiClient { + pub fn new(configuration: Arc>) -> BarApiClient { BarApiClient { configuration, } } } -pub trait BarApi { - fn create_bar(&self, bar_create: models::BarCreate) -> Pin>>>; +pub trait BarApi: Send { + fn create_bar(&self, bar_create: models::BarCreate) -> Pin> + Send>>; } implBarApi for BarApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_bar(&self, bar_create: models::BarCreate) -> Pin>>> { + fn create_bar(&self, bar_create: models::BarCreate) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/bar".to_string()) ; req = req.with_body_param(bar_create); diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/client.rs b/samples/client/others/rust/hyper/oneOf/src/apis/client.rs index d01360bc0012..63168b47f5f1 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/client.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -12,7 +12,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { bar_api: Box::new(crate::apis::BarApiClient::new(rc.clone())), diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/configuration.rs b/samples/client/others/rust/hyper/oneOf/src/apis/configuration.rs index 608bb9bca288..fe2facacee49 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/configuration.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use oneof_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use oneof_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs b/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs index fee425fd6e8b..0a2791099587 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/foo_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,27 +24,27 @@ use super::request as __internal_request; pub struct FooApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl FooApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> FooApiClient { + pub fn new(configuration: Arc>) -> FooApiClient { FooApiClient { configuration, } } } -pub trait FooApi { - fn create_foo(&self, foo: Option) -> Pin>>>; - fn get_all_foos(&self, ) -> Pin, Error>>>>; +pub trait FooApi: Send { + fn create_foo(&self, foo: Option) -> Pin> + Send>>; + fn get_all_foos(&self, ) -> Pin, Error>> + Send>>; } implFooApi for FooApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_foo(&self, foo: Option) -> Pin>>> { + fn create_foo(&self, foo: Option) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/foo".to_string()) ; req = req.with_body_param(foo); @@ -53,7 +53,7 @@ implFooApi for FooApiClient } #[allow(unused_mut)] - fn get_all_foos(&self, ) -> Pin, Error>>>> { + fn get_all_foos(&self, ) -> Pin, Error>> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/foo".to_string()) ; diff --git a/samples/client/others/rust/hyper/oneOf/src/apis/request.rs b/samples/client/others/rust/hyper/oneOf/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/others/rust/hyper/oneOf/src/apis/request.rs +++ b/samples/client/others/rust/hyper/oneOf/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/client.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/client.rs index 0847578a83ca..cdbaf556cfb2 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/client.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/client.rs @@ -1,4 +1,4 @@ -use std::rc::Rc; +use std::sync::Arc; use hyper; use hyper_util::client::legacy::connect::Connect; @@ -15,7 +15,7 @@ pub struct APIClient { impl APIClient { pub fn new(configuration: Configuration) -> APIClient where C: Clone + std::marker::Send + Sync + 'static { - let rc = Rc::new(configuration); + let rc = Arc::new(configuration); APIClient { fake_api: Box::new(crate::apis::FakeApiClient::new(rc.clone())), diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs index be6df1cd28ed..5e23b02c1fc7 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/configuration.rs @@ -42,10 +42,11 @@ impl Configuration { /// # Example /// /// ``` - /// let api_config = { - /// api_key: "my-api-key", - /// ...Configuration::new() - /// } + /// # use petstore_hyper::apis::configuration::Configuration; + /// let api_config = Configuration { + /// basic_auth: Some(("user".into(), None)), + /// ..Configuration::new() + /// }; /// ``` pub fn new() -> Configuration { Configuration::default() @@ -60,6 +61,11 @@ impl Configuration /// # Example /// /// ``` + /// # use core::time::Duration; + /// # use petstore_hyper::apis::configuration::Configuration; + /// use hyper_util::client::legacy::Client; + /// use hyper_util::rt::TokioExecutor; + /// /// let client = Client::builder(TokioExecutor::new()) /// .pool_idle_timeout(Duration::from_secs(30)) /// .build_http(); diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs index dcbe3fb669f3..9685486c6839 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/fake_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,26 +24,26 @@ use super::request as __internal_request; pub struct FakeApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl FakeApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> FakeApiClient { + pub fn new(configuration: Arc>) -> FakeApiClient { FakeApiClient { configuration, } } } -pub trait FakeApi { - fn test_nullable_required_param(&self, username: &str, dummy_required_nullable_param: Option<&str>, uppercase: Option<&str>) -> Pin>>>; +pub trait FakeApi: Send { + fn test_nullable_required_param(&self, username: &str, dummy_required_nullable_param: Option<&str>, uppercase: Option<&str>) -> Pin> + Send>>; } implFakeApi for FakeApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn test_nullable_required_param(&self, username: &str, dummy_required_nullable_param: Option<&str>, uppercase: Option<&str>) -> Pin>>> { + fn test_nullable_required_param(&self, username: &str, dummy_required_nullable_param: Option<&str>, uppercase: Option<&str>) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/fake/user/{username}".to_string()) ; req = req.with_path_param("username".to_string(), username.to_string()); diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs index ecff2f24485f..bd01f5c4e3cd 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/pet_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,33 +24,33 @@ use super::request as __internal_request; pub struct PetApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl PetApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> PetApiClient { + pub fn new(configuration: Arc>) -> PetApiClient { PetApiClient { configuration, } } } -pub trait PetApi { - fn add_pet(&self, pet: models::Pet) -> Pin>>>; - fn delete_pet(&self, pet_id: i64, api_key: Option<&str>) -> Pin>>>; - fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>>; - fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>>; - fn get_pet_by_id(&self, pet_id: i64) -> Pin>>>; - fn update_pet(&self, pet: models::Pet) -> Pin>>>; - fn update_pet_with_form(&self, pet_id: i64, name: Option<&str>, status: Option<&str>) -> Pin>>>; - fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>>; +pub trait PetApi: Send { + fn add_pet(&self, pet: models::Pet) -> Pin> + Send>>; + fn delete_pet(&self, pet_id: i64, api_key: Option<&str>) -> Pin> + Send>>; + fn find_pets_by_status(&self, status: Vec) -> Pin, Error>> + Send>>; + fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>> + Send>>; + fn get_pet_by_id(&self, pet_id: i64) -> Pin> + Send>>; + fn update_pet(&self, pet: models::Pet) -> Pin> + Send>>; + fn update_pet_with_form(&self, pet_id: i64, name: Option<&str>, status: Option<&str>) -> Pin> + Send>>; + fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin> + Send>>; } implPetApi for PetApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn add_pet(&self, pet: models::Pet) -> Pin>>> { + fn add_pet(&self, pet: models::Pet) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/pet".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -60,7 +60,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn delete_pet(&self, pet_id: i64, api_key: Option<&str>) -> Pin>>> { + fn delete_pet(&self, pet_id: i64, api_key: Option<&str>) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/pet/{petId}".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -74,7 +74,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn find_pets_by_status(&self, status: Vec) -> Pin, Error>>>> { + fn find_pets_by_status(&self, status: Vec) -> Pin, Error>> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/findByStatus".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -84,7 +84,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>>>> { + fn find_pets_by_tags(&self, tags: Vec) -> Pin, Error>> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/findByTags".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -94,7 +94,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn get_pet_by_id(&self, pet_id: i64) -> Pin>>> { + fn get_pet_by_id(&self, pet_id: i64) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/pet/{petId}".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -108,7 +108,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn update_pet(&self, pet: models::Pet) -> Pin>>> { + fn update_pet(&self, pet: models::Pet) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::PUT, "/pet".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -118,7 +118,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn update_pet_with_form(&self, pet_id: i64, name: Option<&str>, status: Option<&str>) -> Pin>>> { + fn update_pet_with_form(&self, pet_id: i64, name: Option<&str>, status: Option<&str>) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/pet/{petId}".to_string()) .with_auth(__internal_request::Auth::Oauth) ; @@ -135,7 +135,7 @@ implPetApi for PetApiClient } #[allow(unused_mut)] - fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin>>> { + fn upload_file(&self, pet_id: i64, additional_metadata: Option<&str>, file: Option) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/pet/{petId}/uploadImage".to_string()) .with_auth(__internal_request::Auth::Oauth) ; diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/request.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/request.rs index b92c977b726d..a6f7b74cc6ef 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/request.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/request.rs @@ -109,7 +109,7 @@ impl Request { pub fn execute<'a, C, U>( self, conf: &configuration::Configuration, - ) -> Pin> + 'a>> + ) -> Pin> + 'a + Send>> where C: Connect + Clone + std::marker::Send + Sync, U: Sized + std::marker::Send + 'a, diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs index 67cbbe4fd4b2..b5bfef2c9102 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/store_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,29 +24,29 @@ use super::request as __internal_request; pub struct StoreApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl StoreApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> StoreApiClient { + pub fn new(configuration: Arc>) -> StoreApiClient { StoreApiClient { configuration, } } } -pub trait StoreApi { - fn delete_order(&self, order_id: &str) -> Pin>>>; - fn get_inventory(&self, ) -> Pin, Error>>>>; - fn get_order_by_id(&self, order_id: i64) -> Pin>>>; - fn place_order(&self, order: models::Order) -> Pin>>>; +pub trait StoreApi: Send { + fn delete_order(&self, order_id: &str) -> Pin> + Send>>; + fn get_inventory(&self, ) -> Pin, Error>> + Send>>; + fn get_order_by_id(&self, order_id: i64) -> Pin> + Send>>; + fn place_order(&self, order: models::Order) -> Pin> + Send>>; } implStoreApi for StoreApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn delete_order(&self, order_id: &str) -> Pin>>> { + fn delete_order(&self, order_id: &str) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/store/order/{orderId}".to_string()) ; req = req.with_path_param("orderId".to_string(), order_id.to_string()); @@ -56,7 +56,7 @@ implStoreApi for StoreApiClient } #[allow(unused_mut)] - fn get_inventory(&self, ) -> Pin, Error>>>> { + fn get_inventory(&self, ) -> Pin, Error>> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/store/inventory".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -69,7 +69,7 @@ implStoreApi for StoreApiClient } #[allow(unused_mut)] - fn get_order_by_id(&self, order_id: i64) -> Pin>>> { + fn get_order_by_id(&self, order_id: i64) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/store/order/{orderId}".to_string()) ; req = req.with_path_param("orderId".to_string(), order_id.to_string()); @@ -78,7 +78,7 @@ implStoreApi for StoreApiClient } #[allow(unused_mut)] - fn place_order(&self, order: models::Order) -> Pin>>> { + fn place_order(&self, order: models::Order) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/store/order".to_string()) ; req = req.with_body_param(order); diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs index c7444f54f531..b9efcdb2fae1 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/testing_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,27 +24,27 @@ use super::request as __internal_request; pub struct TestingApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl TestingApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> TestingApiClient { + pub fn new(configuration: Arc>) -> TestingApiClient { TestingApiClient { configuration, } } } -pub trait TestingApi { - fn tests_file_response_get(&self, ) -> Pin>>>; - fn tests_type_testing_get(&self, ) -> Pin>>>; +pub trait TestingApi: Send { + fn tests_file_response_get(&self, ) -> Pin> + Send>>; + fn tests_type_testing_get(&self, ) -> Pin> + Send>>; } implTestingApi for TestingApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn tests_file_response_get(&self, ) -> Pin>>> { + fn tests_file_response_get(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/tests/fileResponse".to_string()) ; @@ -52,7 +52,7 @@ implTestingApi for TestingApiClient } #[allow(unused_mut)] - fn tests_type_testing_get(&self, ) -> Pin>>> { + fn tests_type_testing_get(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/tests/typeTesting".to_string()) ; diff --git a/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs b/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs index d3ff8e9cda64..9d486ea2ee5d 100644 --- a/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs +++ b/samples/client/petstore/rust/hyper/petstore/src/apis/user_api.rs @@ -8,7 +8,7 @@ * Generated by: https://openapi-generator.tech */ -use std::rc::Rc; +use std::sync::Arc; use std::borrow::Borrow; use std::pin::Pin; #[allow(unused_imports)] @@ -24,33 +24,33 @@ use super::request as __internal_request; pub struct UserApiClient where C: Clone + std::marker::Send + Sync + 'static { - configuration: Rc>, + configuration: Arc>, } impl UserApiClient where C: Clone + std::marker::Send + Sync { - pub fn new(configuration: Rc>) -> UserApiClient { + pub fn new(configuration: Arc>) -> UserApiClient { UserApiClient { configuration, } } } -pub trait UserApi { - fn create_user(&self, user: models::User) -> Pin>>>; - fn create_users_with_array_input(&self, user: Vec) -> Pin>>>; - fn create_users_with_list_input(&self, user: Vec) -> Pin>>>; - fn delete_user(&self, username: &str) -> Pin>>>; - fn get_user_by_name(&self, username: &str) -> Pin>>>; - fn login_user(&self, username: &str, password: &str) -> Pin>>>; - fn logout_user(&self, ) -> Pin>>>; - fn update_user(&self, username: &str, user: models::User) -> Pin>>>; +pub trait UserApi: Send { + fn create_user(&self, user: models::User) -> Pin> + Send>>; + fn create_users_with_array_input(&self, user: Vec) -> Pin> + Send>>; + fn create_users_with_list_input(&self, user: Vec) -> Pin> + Send>>; + fn delete_user(&self, username: &str) -> Pin> + Send>>; + fn get_user_by_name(&self, username: &str) -> Pin> + Send>>; + fn login_user(&self, username: &str, password: &str) -> Pin> + Send>>; + fn logout_user(&self, ) -> Pin> + Send>>; + fn update_user(&self, username: &str, user: models::User) -> Pin> + Send>>; } implUserApi for UserApiClient where C: Clone + std::marker::Send + Sync { #[allow(unused_mut)] - fn create_user(&self, user: models::User) -> Pin>>> { + fn create_user(&self, user: models::User) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/user".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -65,7 +65,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn create_users_with_array_input(&self, user: Vec) -> Pin>>> { + fn create_users_with_array_input(&self, user: Vec) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/user/createWithArray".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -80,7 +80,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn create_users_with_list_input(&self, user: Vec) -> Pin>>> { + fn create_users_with_list_input(&self, user: Vec) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::POST, "/user/createWithList".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -95,7 +95,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn delete_user(&self, username: &str) -> Pin>>> { + fn delete_user(&self, username: &str) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::DELETE, "/user/{username}".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -110,7 +110,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn get_user_by_name(&self, username: &str) -> Pin>>> { + fn get_user_by_name(&self, username: &str) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/user/{username}".to_string()) ; req = req.with_path_param("username".to_string(), username.to_string()); @@ -119,7 +119,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn login_user(&self, username: &str, password: &str) -> Pin>>> { + fn login_user(&self, username: &str, password: &str) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/user/login".to_string()) ; req = req.with_query_param("username".to_string(), username.to_string()); @@ -129,7 +129,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn logout_user(&self, ) -> Pin>>> { + fn logout_user(&self, ) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::GET, "/user/logout".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true, @@ -143,7 +143,7 @@ implUserApi for UserApiClient } #[allow(unused_mut)] - fn update_user(&self, username: &str, user: models::User) -> Pin>>> { + fn update_user(&self, username: &str, user: models::User) -> Pin> + Send>> { let mut req = __internal_request::Request::new(hyper::Method::PUT, "/user/{username}".to_string()) .with_auth(__internal_request::Auth::ApiKey(__internal_request::ApiKey{ in_header: true,