Get a human-readable description.
(&self)
| 132 | impl IdentityType { |
| 133 | /// Get a human-readable description. |
| 134 | pub fn description(&self) -> &'static str { |
| 135 | match self { |
| 136 | IdentityType::User => "User", |
| 137 | IdentityType::Agent => "Agent", |
| 138 | IdentityType::Delegated => "Delegated Agent", |
| 139 | } |
| 140 | } |
| 141 | |
| 142 | /// Check if this is a human user identity. |
| 143 | #[inline] |
no outgoing calls