Skip to main content

Strategy

Trait Strategy 

Source
pub trait Strategy: Send + Sync {
    // Required methods
    fn apply(&self, value: &RedactValue, rng: &mut dyn RngCore) -> RedactValue;
    fn kind(&self) -> StrategyKind;
}
Expand description

Trait for redaction strategies

Required Methods§

Source

fn apply(&self, value: &RedactValue, rng: &mut dyn RngCore) -> RedactValue

Apply the strategy to redact a value

Source

fn kind(&self) -> StrategyKind

Get the strategy kind

Implementors§