pub struct Redacted<'a> {
pub text: Cow<'a, str>,
pub counts: Vec<(&'static str, usize)>,
}Expand description
What secrets found and removed.
Fields§
§text: Cow<'a, str>The text with every match replaced (borrowed when nothing matched).
counts: Vec<(&'static str, usize)>How many matches of each kind, in KINDS order, only those found.
Implementations§
Trait Implementations§
impl<'a> Eq for Redacted<'a>
impl<'a> StructuralPartialEq for Redacted<'a>
Auto Trait Implementations§
impl<'a> Forget for Redacted<'a>
impl<'a> Freeze for Redacted<'a>
impl<'a> Move for Redacted<'a>
impl<'a> RefUnwindSafe for Redacted<'a>
impl<'a> Send for Redacted<'a>
impl<'a> Sync for Redacted<'a>
impl<'a> Unpin for Redacted<'a>
impl<'a> UnsafeUnpin for Redacted<'a>
impl<'a> UnwindSafe for Redacted<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more