MCPcopy Create free account
hub / github.com/chridou/http-api-problem / fmt

Method fmt

src/api_error.rs:236–242  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter)

Source from the content-addressed store, hash-verified

234
235impl 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
245impl From<StatusCode> for ApiError {

Callers

nothing calls this directly

Calls 1

detail_messageMethod · 0.80

Tested by

no test coverage detected