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

Method with_token

src/api_client.rs:40–42  ·  view source on GitHub ↗

Returns a client that uses `token` for authentication, regardless of the token this client was built with.

(&self, token: String)

Source from the content-addressed store, hash-verified

38 /// Returns a client that uses `token` for authentication, regardless of
39 /// the token this client was built with.
40 pub fn with_token(&self, token: String) -> Self {
41 Self::new(Some(token), self.api_url.clone())
42 }
43
44 /// The token this client currently authenticates with, if any.
45 ///

Callers 1

loginFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected