You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `std::collections::HashMap<String, i32>`"))),
112
112
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `std::collections::HashMap<String, i32>`")))),
113
113
}
114
114
}else{
115
-
let content = resp.text().await?;
115
+
let content = resp.text()?;
116
116
let entity:Option<GetInventoryError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Order`"))),
149
149
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Order`")))),
150
150
}
151
151
}else{
152
-
let content = resp.text().await?;
152
+
let content = resp.text()?;
153
153
let entity:Option<GetOrderByIdError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::Order`"))),
187
187
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::Order`")))),
188
188
}
189
189
}else{
190
-
let content = resp.text().await?;
190
+
let content = resp.text()?;
191
191
let entity:Option<PlaceOrderError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `String`"))),
82
82
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `String`")))),
83
83
}
84
84
}else{
85
-
let content = resp.text().await?;
85
+
let content = resp.text()?;
86
86
let entity:Option<TestsAllOfWithOneModelGetError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `Vec<models::ModelWithInlineEnum>`"))),
145
145
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `Vec<models::ModelWithInlineEnum>`")))),
146
146
}
147
147
}else{
148
-
let content = resp.text().await?;
148
+
let content = resp.text()?;
149
149
let entity:Option<TestsInlineEnumBoxingGetError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::ModelWithInlineEnum`"))),
183
183
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::ModelWithInlineEnum`")))),
184
184
}
185
185
}else{
186
-
let content = resp.text().await?;
186
+
let content = resp.text()?;
187
187
let entity:Option<TestsInlineEnumBoxingPostError> = serde_json::from_str(&content).ok();
ContentType::Text => returnErr(Error::from(serde_json::Error::custom("Received `text/plain` content type response that cannot be converted to `models::TypeTesting`"))),
217
217
ContentType::Unsupported(unknown_type) => returnErr(Error::from(serde_json::Error::custom(format!("Received `{unknown_type}` content type response that cannot be converted to `models::TypeTesting`")))),
218
218
}
219
219
}else{
220
-
let content = resp.text().await?;
220
+
let content = resp.text()?;
221
221
let entity:Option<TestsTypeTestingGetError> = serde_json::from_str(&content).ok();
0 commit comments