Skip to main content

KeyPolicy

Trait KeyPolicy 

Source
pub trait KeyPolicy: Sync {
    // Required method
    fn action(&self, parent: &Map<String, Value>, key: &str) -> KeyAction;
}
Expand description

Decides, per object key, whether its value is redacted or restored.

Required Methods§

Source

fn action(&self, parent: &Map<String, Value>, key: &str) -> KeyAction

What to do with key, given the object it is in.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§