Skip to main content

get_env_api_key

Function get_env_api_key 

Source
pub fn get_env_api_key(provider: &str) -> Option<String>
Expand description
Stable since 0.63.0
Get API key from environment variables for a provider

Returns Some("<authenticated>") for providers that support ambient credentials (e.g., AWS IAM roles, Google ADC) rather than explicit API keys.