pub trait SecretResolver: Send + Sync {
// Required method
fn get(&self, var: &str) -> Option<SecretString>;
}Expand description
How a plugin reads the credential its configuration names.
A configuration document never carries a credential value, only the name of the environment variable holding it.
Required Methods§
Sourcefn get(&self, var: &str) -> Option<SecretString>
fn get(&self, var: &str) -> Option<SecretString>
The value of var, or None when nothing defines it.
The returned value is never logged and never appears in Debug output.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".