pub struct Redactor<'a> { /* private fields */ }Implementations§
Source§impl<'a> Redactor<'a>
impl<'a> Redactor<'a>
pub fn with_secret(secret: &'a SecretString) -> Self
pub fn and_secret(self, secret: &'a SecretString) -> Self
pub fn redact(&self, value: &str) -> String
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Redactor<'a>
impl<'a> RefUnwindSafe for Redactor<'a>
impl<'a> Send for Redactor<'a>
impl<'a> Sync for Redactor<'a>
impl<'a> Unpin for Redactor<'a>
impl<'a> UnsafeUnpin for Redactor<'a>
impl<'a> UnwindSafe for Redactor<'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