env_value_to_string

Function env_value_to_string 

Source
fn env_value_to_string(v: &EnvValue) -> String
Expand description

Converts an EnvValue into its canonical string representation for Markdown output. This function is kept as a local helper because EnvValue::Literal uses yaml_safe_string which is specific to the Markdown printer context.

§Examples

let e = EnvValue::Env("API_KEY".into());
assert_eq!(env_value_to_string(&e), "env:API_KEY");

let l = EnvValue::Literal("plain".into());
assert_eq!(env_value_to_string(&l), "plain");