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

Method set_authentication

src/api_client.rs:93–96  ·  view source on GitHub ↗

The single mutation point for the credentials.

(&mut self, authentication: Authentication)

Source from the content-addressed store, hash-verified

91
92 /// The single mutation point for the credentials.
93 pub fn set_authentication(&mut self, authentication: Authentication) {
94 self.gql_client = build_gql_api_client(authentication.token(), self.api_url.clone());
95 self.authentication = authentication;
96 }
97}
98
99fn build_gql_api_client(token: Option<&str>, api_url: String) -> GQLClient {

Callers 2

set_oidc_tokenMethod · 0.80
set_oidc_tokenMethod · 0.80

Calls 2

build_gql_api_clientFunction · 0.85
tokenMethod · 0.80

Tested by

no test coverage detected