pub fn env_document(
env: &HashMap<&str, &str>,
) -> Result<(Value, Vec<(String, String)>), String>Expand description
The env layer as a config DOCUMENT: for every schema path, the first present
env candidate (AGENTD_… > AGENT_… > bare) is coerced and set at its
path. Returns the document (an empty object when nothing is set) plus the
(env name, path) pairs that were applied. An untypeable value is an
error naming the variable.