Skip to main content

RedactMapValueMut

Trait RedactMapValueMut 

Source
pub trait RedactMapValueMut<K: ?Sized, V: ?Sized> {
    // Required method
    fn redact_map_in_place(&mut self, policy: &RedactionPolicy);
}
Expand description

Redacts map values in place after classifying each value by its runtime key.

This provides logical replacement only; see RedactValueMut for its memory-erasure boundary.

§Type Parameters

  • K - Runtime map-key type used for field classification.
  • V - Mutable map-value type redacted in place.

Required Methods§

Source

fn redact_map_in_place(&mut self, policy: &RedactionPolicy)

Replaces sensitive values according to policy.

§Parameters
  • policy - Complete policy used to classify every runtime key.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<M: ?Sized, K, V> RedactMapValueMut<K, V> for M
where for<'a> &'a mut M: IntoIterator<Item = (&'a K, &'a mut V)>, K: AsRef<str> + ?Sized, V: RedactValueMut + ?Sized,