Skip to main content

overlay_lookup

Function overlay_lookup 

Source
pub fn overlay_lookup<F>(
    local: BTreeMap<&'static str, String>,
    env: F,
) -> impl Fn(&str) -> Option<String>
where F: Fn(&str) -> Option<String>,
Expand description

A lookup for crate::config::Config::from_lookup: the local variables win, their _FILE forms and the database URLs are hidden, everything else (an assistant key, OIDC, …) comes from env.