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§
Sourcefn apply(&self, value: &RedactValue, rng: &mut dyn RngCore) -> RedactValue
fn apply(&self, value: &RedactValue, rng: &mut dyn RngCore) -> RedactValue
Apply the strategy to redact a value
Sourcefn kind(&self) -> StrategyKind
fn kind(&self) -> StrategyKind
Get the strategy kind