(&self)
| 47 | |
| 48 | #[must_use] |
| 49 | pub fn api_key(&self) -> Option<&str> { |
| 50 | match self { |
| 51 | Self::ApiKey(api_key) | Self::ApiKeyAndBearer { api_key, .. } => Some(api_key), |
| 52 | Self::None | Self::BearerToken(_) => None, |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | #[must_use] |
| 57 | pub fn bearer_token(&self) -> Option<&str> { |
no outgoing calls
no test coverage detected