@@ -6,11 +6,11 @@ use hyper_rustls::HttpsConnector;
66use std:: borrow:: Cow ;
77use std:: fmt:: Debug ;
88
9- pub trait HasHyperClient : Debug {
9+ pub trait HasHyperClient : Debug + Send + Sync {
1010 fn hyper_client ( & self ) -> & hyper:: Client < HttpsConnector < hyper:: client:: HttpConnector > > ;
1111}
1212
13- pub trait CosmosClient : HasHyperClient {
13+ pub trait CosmosClient : HasHyperClient + Send + Sync {
1414 fn create_database ( & self ) -> requests:: CreateDatabaseBuilder < ' _ , No > ;
1515 fn list_databases ( & self ) -> requests:: ListDatabasesBuilder < ' _ > ;
1616
6262 fn database_client ( & self ) -> & D ;
6363}
6464
65- pub trait WithDatabaseClient < ' a , C , D > : Debug
65+ pub trait WithDatabaseClient < ' a , C , D > : Debug + Send + Sync
6666where
6767 C : CosmosClient ,
6868 D : DatabaseClient < C > ,
7272 IntoCowStr : Into < Cow < ' a , str > > ;
7373}
7474
75- pub trait IntoDatabaseClient < ' a , C , D > : Debug
75+ pub trait IntoDatabaseClient < ' a , C , D > : Debug + Send + Sync
7676where
7777 C : CosmosClient ,
7878 D : DatabaseClient < C > ,
@@ -125,7 +125,7 @@ where
125125 fn user_client ( & self ) -> & USER ;
126126}
127127
128- pub trait WithUserClient < ' a , C , D , USER > : Debug
128+ pub trait WithUserClient < ' a , C , D , USER > : Debug + Send + Sync
129129where
130130 C : CosmosClient ,
131131 D : DatabaseClient < C > ,
@@ -136,7 +136,7 @@ where
136136 IntoCowStr : Into < Cow < ' a , str > > ;
137137}
138138
139- pub trait IntoUserClient < ' a , C , D , USER > : Debug
139+ pub trait IntoUserClient < ' a , C , D , USER > : Debug + Send + Sync
140140where
141141 C : CosmosClient ,
142142 D : DatabaseClient < C > ,
@@ -198,7 +198,7 @@ where
198198 fn permission_client ( & self ) -> & PERMISSION ;
199199}
200200
201- pub trait WithPermissionClient < ' a , C , D , USER , PERMISSION > : Debug
201+ pub trait WithPermissionClient < ' a , C , D , USER , PERMISSION > : Debug + Send + Sync
202202where
203203 C : CosmosClient ,
204204 D : DatabaseClient < C > ,
@@ -210,7 +210,7 @@ where
210210 IntoCowStr : Into < Cow < ' a , str > > ;
211211}
212212
213- pub trait IntoPermissionClient < ' a , C , D , USER , PERMISSION > : Debug
213+ pub trait IntoPermissionClient < ' a , C , D , USER , PERMISSION > : Debug + Send + Sync
214214where
215215 C : CosmosClient ,
216216 D : DatabaseClient < C > ,
@@ -278,7 +278,7 @@ where
278278 fn collection_client ( & self ) -> & COLL ;
279279}
280280
281- pub trait WithCollectionClient < ' a , C , D , COLL > : Debug
281+ pub trait WithCollectionClient < ' a , C , D , COLL > : Debug + Send + Sync
282282where
283283 C : CosmosClient ,
284284 D : DatabaseClient < C > ,
@@ -289,7 +289,7 @@ where
289289 IntoCowStr : Into < Cow < ' a , str > > ;
290290}
291291
292- pub trait IntoCollectionClient < ' a , C , D , COLL > : Debug
292+ pub trait IntoCollectionClient < ' a , C , D , COLL > : Debug + Send + Sync
293293where
294294 C : CosmosClient ,
295295 D : DatabaseClient < C > ,
@@ -356,7 +356,7 @@ where
356356 fn user_defined_function_client ( & self ) -> & UDF ;
357357}
358358
359- pub trait WithUserDefinedFunctionClient < ' a , C , D , COLL , UDF > : Debug
359+ pub trait WithUserDefinedFunctionClient < ' a , C , D , COLL , UDF > : Debug + Send + Sync
360360where
361361 C : CosmosClient ,
362362 D : DatabaseClient < C > ,
@@ -371,7 +371,7 @@ where
371371 IntoCowStr : Into < Cow < ' a , str > > ;
372372}
373373
374- pub trait IntoUserDefinedFunctionClient < ' a , C , D , COLL , UDF > : Debug
374+ pub trait IntoUserDefinedFunctionClient < ' a , C , D , COLL , UDF > : Debug + Send + Sync
375375where
376376 C : CosmosClient ,
377377 D : DatabaseClient < C > ,
@@ -444,7 +444,7 @@ where
444444 fn stored_procedure_client ( & self ) -> & SP ;
445445}
446446
447- pub trait WithStoredProcedureClient < ' a , C , D , COLL , SP > : Debug
447+ pub trait WithStoredProcedureClient < ' a , C , D , COLL , SP > : Debug + Send + Sync
448448where
449449 C : CosmosClient ,
450450 D : DatabaseClient < C > ,
@@ -456,7 +456,7 @@ where
456456 IntoCowStr : Into < Cow < ' a , str > > ;
457457}
458458
459- pub trait IntoStoredProcedureClient < ' a , C , D , COLL , SP > : Debug
459+ pub trait IntoStoredProcedureClient < ' a , C , D , COLL , SP > : Debug + Send + Sync
460460where
461461 C : CosmosClient ,
462462 D : DatabaseClient < C > ,
@@ -518,7 +518,7 @@ where
518518 fn trigger_client ( & self ) -> & TRIGGER ;
519519}
520520
521- pub trait WithTriggerClient < ' a , C , D , COLL , TRIGGER > : Debug
521+ pub trait WithTriggerClient < ' a , C , D , COLL , TRIGGER > : Debug + Send + Sync
522522where
523523 C : CosmosClient ,
524524 D : DatabaseClient < C > ,
@@ -530,7 +530,7 @@ where
530530 IntoCowStr : Into < Cow < ' a , str > > ;
531531}
532532
533- pub trait IntoTriggerClient < ' a , C , D , COLL , TRIGGER > : Debug
533+ pub trait IntoTriggerClient < ' a , C , D , COLL , TRIGGER > : Debug + Send + Sync
534534where
535535 C : CosmosClient ,
536536 D : DatabaseClient < C > ,
@@ -590,7 +590,7 @@ where
590590 fn document_client ( & self ) -> & DOC ;
591591}
592592
593- pub trait WithDocumentClient < ' a , ' b , C , D , COLL , DOC > : Debug
593+ pub trait WithDocumentClient < ' a , ' b , C , D , COLL , DOC > : Debug + Send + Sync
594594where
595595 C : CosmosClient ,
596596 D : DatabaseClient < C > ,
@@ -606,7 +606,7 @@ where
606606 DocName : Into < Cow < ' b , str > > ;
607607}
608608
609- pub trait IntoDocumentClient < ' b , C , D , COLL , DOC > : Debug
609+ pub trait IntoDocumentClient < ' b , C , D , COLL , DOC > : Debug + Send + Sync
610610where
611611 C : CosmosClient ,
612612 D : DatabaseClient < C > ,
@@ -686,7 +686,7 @@ where
686686 fn attachment_client ( & self ) -> & ATT ;
687687}
688688
689- pub trait WithAttachmentClient < ' a , C , D , COLL , DOC , ATT > : Debug
689+ pub trait WithAttachmentClient < ' a , C , D , COLL , DOC , ATT > : Debug + Send + Sync
690690where
691691 C : CosmosClient ,
692692 D : DatabaseClient < C > ,
@@ -699,7 +699,7 @@ where
699699 IntoCowStr : Into < Cow < ' a , str > > ;
700700}
701701
702- pub trait IntoAttachmentClient < ' a , C , D , COLL , DOC , ATT > : Debug
702+ pub trait IntoAttachmentClient < ' a , C , D , COLL , DOC , ATT > : Debug + Send + Sync
703703where
704704 C : CosmosClient ,
705705 D : DatabaseClient < C > ,
0 commit comments