MCPcopy Create free account
hub / github.com/Louisym/MiniCC / api_key

Method api_key

rust/crates/api/src/client.rs:49–54  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

47
48 #[must_use]
49 pub fn api_key(&self) -> Option<&str> {
50 match self {
51 Self::ApiKey(api_key) | Self::ApiKeyAndBearer { api_key, .. } => Some(api_key),
52 Self::None | Self::BearerToken(_) => None,
53 }
54 }
55
56 #[must_use]
57 pub fn bearer_token(&self) -> Option<&str> {

Callers 3

applyMethod · 0.80
with_auth_tokenMethod · 0.80
read_api_keyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected