Get a human-readable description.
(&self)
| 164 | impl IdentityType { |
| 165 | /// Get a human-readable description. |
| 166 | pub fn description(&self) -> &'static str { |
| 167 | match self { |
| 168 | IdentityType::User => "User", |
| 169 | IdentityType::Agent => "Agent", |
| 170 | IdentityType::Delegated => "Delegated Agent", |
| 171 | } |
| 172 | } |
| 173 | |
| 174 | /// Check if this is a human user identity. |
| 175 | #[inline] |
no outgoing calls