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

Method detail_message

src/api_error.rs:149–159  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

147 }
148
149 fn detail_message(&self) -> Option<Cow<str>> {
150 if let Some(message) = self.message.as_ref() {
151 return Some(Cow::Borrowed(message));
152 }
153
154 if let Some(cause) = self.source() {
155 return Some(Cow::Owned(cause.to_string()));
156 }
157
158 None
159 }
160
161 #[cfg(feature = "with-hyper")]
162 pub fn into_hyper_response(self) -> hyper::Response<hyper::Body> {

Callers 4

display_messageMethod · 0.80
to_http_api_problemMethod · 0.80
into_http_api_problemMethod · 0.80
fmtMethod · 0.80

Calls 1

sourceMethod · 0.45

Tested by

no test coverage detected