Skip to main content

source_of

Function source_of 

Source
pub fn source_of(declared: Declared<'_>, store: &AuthStore) -> KeySource
Expand description

Where a provider’s key will come from, given what its config names.

The precedence rule itself, in one place. resolve applies it to a loaded Config; doctor applies it to the raw TOML tree, which it has to read separately so a ${VAR} prints as itself rather than being swallowed by the variable-not-set error. Two readers of one rule is the shape config::env_var_refs_in already exists to prevent: doctor once carried a narrower copy of that scanner and reported a config as fine that check refused to load.