Function get_env_bytes

Source
pub fn get_env_bytes(key: &str) -> Result<Vec<u8>, EnvVarError>
Expand description

Returns a named environment variable value as bytes.

In order for this function to succeed, a plugin’s configuration must explicitly declare a permission grant for the environment variable being requested. This function will panic if permission has not been granted.

§Arguments

  • key - The environment variable name. Case-sensitive.