Struct redact_engine::Redaction
source · [−]pub struct Redaction { /* private fields */ }Expand description
Define redact settings
Implementations
sourceimpl Redaction
impl Redaction
sourcepub fn add_values(self, values: Vec<&str>) -> Result<Self>
pub fn add_values(self, values: Vec<&str>) -> Result<Self>
sourcepub fn add_pattern(self, pattern: Pattern) -> Self
pub fn add_pattern(self, pattern: Pattern) -> Self
sourcepub fn add_patterns(self, patterns: Vec<Pattern>) -> Self
pub fn add_patterns(self, patterns: Vec<Pattern>) -> Self
sourcepub fn redact_str(&self, str: &str) -> String
pub fn redact_str(&self, str: &str) -> String
Redact from string
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Redaction
impl Send for Redaction
impl Sync for Redaction
impl Unpin for Redaction
impl UnwindSafe for Redaction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more