Function keyring::set_default_credential_builder
source · [−]pub fn set_default_credential_builder(new: Box<CredentialBuilder>)
Expand description
Set the credential builder used by default to create entries.
This sets a mutable static, so it’s inherently unsafe.
Do not use it to be switching back and forth between builders;
set it once before you create any credentials and leave it alone.
Use entry_with_credential
if you are using multiple credential stores
and want precise control over which credential is in which store.