Get the custom name if this is a custom usage.
(&self)
| 129 | |
| 130 | /// Get the custom name if this is a custom usage. |
| 131 | pub fn custom_name(&self) -> Option<&str> { |
| 132 | match self { |
| 133 | IdentityUsage::Custom(name) => Some(name), |
| 134 | _ => None, |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /// Create a custom usage context. |
| 139 | pub fn custom(name: impl Into<String>) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected