(authentication: Authentication, api_url: String)
| 65 | |
| 66 | impl CodSpeedAPIClient { |
| 67 | pub fn new(authentication: Authentication, api_url: String) -> Self { |
| 68 | Self { |
| 69 | gql_client: build_gql_api_client(authentication.token(), api_url.clone()), |
| 70 | unauthenticated_gql_client: build_gql_api_client(None, api_url.clone()), |
| 71 | api_url, |
| 72 | authentication, |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /// A copy of this client, authenticating differently. |
| 77 | pub fn with_authentication(&self, authentication: Authentication) -> Self { |
nothing calls this directly
no test coverage detected