(&self, f: &mut fmt::Formatter)
| 234 | |
| 235 | impl fmt::Display for ApiError { |
| 236 | fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { |
| 237 | if let Some(detail_message) = self.detail_message() { |
| 238 | write!(f, "{}: {}", self.status, detail_message) |
| 239 | } else { |
| 240 | write!(f, "{}", self.status) |
| 241 | } |
| 242 | } |
| 243 | } |
| 244 | |
| 245 | impl From<StatusCode> for ApiError { |
nothing calls this directly
no test coverage detected