Skip to main content

Redactor

Trait Redactor 

Source
pub trait Redactor {
    // Required method
    fn redact(&self, value: &str) -> String;
}
Expand description

Infallible transformation applied to every untrusted returned string.

Required Methods§

Source

fn redact(&self, value: &str) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl Redactor for NoRedaction

Source§

impl<F> Redactor for F
where F: Fn(&str) -> String,