Get a short display string.
(&self)
| 348 | |
| 349 | /// Get a short display string. |
| 350 | pub fn display_short(&self) -> String { |
| 351 | match &self.email { |
| 352 | Some(email) => format!("{} <{}>", self.name, email), |
| 353 | None => self.name.clone(), |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | /// Convert this identity to an Author for change headers. |
| 358 | /// |