@@ -23,12 +23,12 @@ pub struct OperationClient {
23
23
///
24
24
/// Defaults to a Protobuf converter
25
25
#[ derivative( Debug = "ignore" ) ]
26
- pub content_converter : Box < dyn Convert > ,
26
+ pub content_converter : Box < dyn Convert + Send + Sync > ,
27
27
/// Converter that manages response body conversions
28
28
///
29
29
/// Defaults to a Protobuf converter
30
30
#[ derivative( Debug = "ignore" ) ]
31
- pub accept_converter : Box < dyn Convert > ,
31
+ pub accept_converter : Box < dyn Convert + Send + Sync > ,
32
32
/// Client for request and response objects
33
33
pub request_client : RequestClient ,
34
34
}
@@ -125,14 +125,20 @@ impl crate::BasicClient {
125
125
/// Set the converter used for request bodies handled by this client.
126
126
///
127
127
/// 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
+ ) {
129
132
self . op_client . content_converter = content_converter;
130
133
}
131
134
132
135
/// Set the converter used for response bodies handled by this client.
133
136
///
134
137
/// 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
+ ) {
136
142
self . op_client . accept_converter = accept_converter;
137
143
}
138
144
}
0 commit comments