@@ -23,12 +23,12 @@ pub struct OperationClient {
2323 ///
2424 /// Defaults to a Protobuf converter
2525 #[ derivative( Debug = "ignore" ) ]
26- pub content_converter : Box < dyn Convert > ,
26+ pub content_converter : Box < dyn Convert + Send + Sync > ,
2727 /// Converter that manages response body conversions
2828 ///
2929 /// Defaults to a Protobuf converter
3030 #[ derivative( Debug = "ignore" ) ]
31- pub accept_converter : Box < dyn Convert > ,
31+ pub accept_converter : Box < dyn Convert + Send + Sync > ,
3232 /// Client for request and response objects
3333 pub request_client : RequestClient ,
3434}
@@ -125,14 +125,20 @@ impl crate::BasicClient {
125125 /// Set the converter used for request bodies handled by this client.
126126 ///
127127 /// By default Protobuf will be used for this.
128- pub fn set_request_body_converter ( & mut self , content_converter : Box < dyn Convert > ) {
128+ pub fn set_request_body_converter (
129+ & mut self ,
130+ content_converter : Box < dyn Convert + Send + Sync > ,
131+ ) {
129132 self . op_client . content_converter = content_converter;
130133 }
131134
132135 /// Set the converter used for response bodies handled by this client.
133136 ///
134137 /// By default Protobuf will be used for this.
135- pub fn set_response_body_converter ( & mut self , accept_converter : Box < dyn Convert > ) {
138+ pub fn set_response_body_converter (
139+ & mut self ,
140+ accept_converter : Box < dyn Convert + Send + Sync > ,
141+ ) {
136142 self . op_client . accept_converter = accept_converter;
137143 }
138144}
0 commit comments