Get a short code for compact display.
(&self)
| 88 | |
| 89 | /// Get a short code for compact display. |
| 90 | pub fn short_code(&self) -> &str { |
| 91 | match self { |
| 92 | IdentityUsage::Personal => "P", |
| 93 | IdentityUsage::Work => "W", |
| 94 | IdentityUsage::Community => "C", |
| 95 | IdentityUsage::Bot => "B", |
| 96 | IdentityUsage::Custom(_) => "X", |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | /// Check if this is a personal identity. |
| 101 | #[inline] |
nothing calls this directly
no outgoing calls
no test coverage detected