pub trait MaskSecrets {
// Required methods
fn mask_secrets(&mut self);
fn restore_secrets_from(&mut self, current: &Self);
}Expand description
Mask and restore secret fields on config structs.
Automatically implemented by #[derive(Configurable)] for any struct that
has fields annotated with #[secret] or #[nested]. A blanket impl covers
HashMap<String, T: MaskSecrets> so the trait propagates through alias maps
without any per-type boilerplate.
Required Methods§
fn mask_secrets(&mut self)
fn restore_secrets_from(&mut self, current: &Self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.