(&self)
| 29 | /// Should be implemented in a serde serializer |
| 30 | impl std::string::ToString for BadRequestResponse { |
| 31 | fn to_string(&self) -> String { |
| 32 | let params: Vec<Option<String>> = |
| 33 | vec![Some("message".to_string()), Some(self.message.to_string())]; |
| 34 | |
| 35 | params.into_iter().flatten().collect::<Vec<_>>().join(",") |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | /// Converts Query Parameters representation (style=form, explode=false) to a BadRequestResponse value |