Skip to main content

check_api_key

Function check_api_key 

Source
pub fn check_api_key(api_key: &str) -> Result<(), VarError>
Expand description

Verify that an environment variable containing an API key is set.

Returns Ok(()) if the variable exists, otherwise propagates the [VarError].