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

Method new

src/api_client.rs:67–74  ·  view source on GitHub ↗
(authentication: Authentication, api_url: String)

Source from the content-addressed store, hash-verified

65
66impl 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 {

Callers

nothing calls this directly

Calls 2

build_gql_api_clientFunction · 0.85
tokenMethod · 0.80

Tested by

no test coverage detected