pub struct SecretString { /* private fields */ }Expand description
Wrapper around a sensitive configuration string that always prints [REDACTED] in Debug and Display.
Implementations§
Trait Implementations§
Source§impl Clone for SecretString
impl Clone for SecretString
Source§impl Debug for SecretString
Redacts SecretString in Debug output.
impl Debug for SecretString
Redacts SecretString in Debug output.
Source§impl Default for SecretString
impl Default for SecretString
Source§impl Display for SecretString
Redacts SecretString in Display output.
impl Display for SecretString
Redacts SecretString in Display output.
impl Eq for SecretString
Source§impl PartialEq for SecretString
impl PartialEq for SecretString
impl StructuralPartialEq for SecretString
Auto Trait Implementations§
impl Forget for SecretString
impl Freeze for SecretString
impl Move for SecretString
impl RefUnwindSafe for SecretString
impl Send for SecretStringwhere
RawVecInner: Send,
impl Sync for SecretStringwhere
RawVecInner: Sync,
impl Unpin for SecretString
impl UnsafeUnpin for SecretString
impl UnwindSafe for SecretStringwhere
RawVecInner: UnwindSafe,
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