pub struct Masked<'a>(pub Option<&'a str>);Expand description
A wrapper struct for masking sensitive strings in Debug implementations. It avoids allocating a new String just for formatting.
Tuple Fields§
§0: Option<&'a str>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Masked<'a>
impl<'a> RefUnwindSafe for Masked<'a>
impl<'a> Send for Masked<'a>
impl<'a> Sync for Masked<'a>
impl<'a> Unpin for Masked<'a>
impl<'a> UnsafeUnpin for Masked<'a>
impl<'a> UnwindSafe for Masked<'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