Skip to main content

SecretExtractor

Trait SecretExtractor 

Source
pub trait SecretExtractor {
    // Required method
    fn extract_secrets(
        &mut self,
        prefix: &str,
        secrets: &mut HashMap<String, String>,
    );
}
Expand description

Trait for extracting secrets from configuration structures.

Required Methods§

Source

fn extract_secrets( &mut self, prefix: &str, secrets: &mut HashMap<String, String>, )

Extracts secrets into the provided map using the given prefix, and clears them from self.

Implementors§