| 9 | use serde::{Deserialize, Serialize}; |
| 10 | |
| 11 | pub struct CodSpeedAPIClient { |
| 12 | gql_client: GQLClient, |
| 13 | unauthenticated_gql_client: GQLClient, |
| 14 | api_url: String, |
| 15 | /// The token this client authenticates with. Exposed so downstream |
| 16 | /// consumers (the uploader's `Authorization` header, the executor's |
| 17 | /// `CODSPEED_OAUTH_TOKEN` env injection) don't have to thread the |
| 18 | /// token separately from the client. |
| 19 | token: Option<String>, |
| 20 | } |
| 21 | |
| 22 | impl CodSpeedAPIClient { |
| 23 | /// Build a client authenticated with `token` (when `Some`). |
nothing calls this directly
no outgoing calls
no test coverage detected