Skip to main content

validate_env_keys

Function validate_env_keys 

Source
pub fn validate_env_keys(env: &[(String, String)]) -> Result<()>
Expand description

Checks environment variable names against ENV_KEY_PATTERN.

Backends that set the environment through process flags call this before passing the values on.

ยงErrors

Invalid environment variable name: <key> for the first invalid name.