Skip to main content

resolve_credential_store_with

Function resolve_credential_store_with 

Source
pub fn resolve_credential_store_with(
    flag: Option<CredentialStore>,
    env: Option<&str>,
    file: &EngineConfig,
) -> CredentialStore
Expand description

Resolves the effective CredentialStore from explicit inputs.

Pure and side-effect free so the precedence is unit-testable without touching process state. Precedence (highest first): CLI flag, then env (an invalid value is logged and ignored, falling through), then the config file, then the default CredentialStore::Keyring.