MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / CodSpeedAPIClient

Class CodSpeedAPIClient

src/api_client.rs:11–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9use serde::{Deserialize, Serialize};
10
11pub 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
22impl CodSpeedAPIClient {
23 /// Build a client authenticated with `token` (when `Some`).

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected