Get a short display string.
(&self)
| 380 | |
| 381 | /// Get a short display string. |
| 382 | pub fn display_short(&self) -> String { |
| 383 | match &self.email { |
| 384 | Some(email) => format!("{} <{}>", self.name, email), |
| 385 | None => self.name.clone(), |
| 386 | } |
| 387 | } |
| 388 | |
| 389 | /// Convert this identity to an Author for change headers. |
| 390 | /// |