//! API key loading (from parameter or environment variable).
use AiMuxError;
/// Load an API key from the given value or environment variable.
///
/// If `api_key` is `Some`, returns it directly.
/// Otherwise reads from `environment_variable_name`.
/// Returns `LoadAPIKeyError` if neither is available.