Get a summary string for this header. Returns the message truncated to the first line.
(&self)
| 275 | /// |
| 276 | /// Returns the message truncated to the first line. |
| 277 | pub fn summary(&self) -> &str { |
| 278 | self.message.lines().next().unwrap_or(&self.message) |
| 279 | } |
| 280 | |
| 281 | /// Format the header for display. |
| 282 | /// |