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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§