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

Method token

src/api_client.rs:44–51  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

42
43impl Authentication {
44 pub fn token(&self) -> Option<&str> {
45 match self {
46 Authentication::Oidc(token)
47 | Authentication::RunToken(token)
48 | Authentication::CliLogin(token) => Some(token),
49 Authentication::Tokenless => None,
50 }
51 }
52
53 /// How to name it in the runner output.
54 pub fn label(&self, run_environment: &RunEnvironment) -> String {

Callers 7

newMethod · 0.80
set_authenticationMethod · 0.80
get_upload_metadataMethod · 0.80
retrieve_upload_dataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected