pub fn get_env(key: &str) -> Result<String, EnvVarError>
Expand description
Returns a named environment variable value as a String
.
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.