Stable machine key for JSON output (`env`, `global`, `server-profile`). The human labels live in the `Display` impl.
(&self)
| 139 | /// Stable machine key for JSON output (`env`, `global`, `server-profile`). |
| 140 | /// The human labels live in the `Display` impl. |
| 141 | pub fn key(&self) -> &'static str { |
| 142 | match self { |
| 143 | AgentIdentitySource::EnvVar => "env", |
| 144 | AgentIdentitySource::GlobalSetting => "global", |
| 145 | AgentIdentitySource::ServerProfile => "server-profile", |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | |
| 150 | /// Resolve the agent identity that recording hooks should sign as. |