Skip to main content

list_or_empty

Function list_or_empty 

Source
pub fn list_or_empty(
    provider: Option<&Arc<dyn CredentialProvider>>,
) -> Vec<(String, CredentialRef)>
Expand description

Test-friendly handle: the wrapped provider when Some, or an empty listing when None. Used by crate::app::App::credentials.