pub struct SecretString(/* private fields */);Expand description
A string whose contents never appear in logs or Debug output.
The type on purpose has no Display and no Serialize impl: the only way
to read the plaintext is SecretString::expose, which keeps every such
use visible at the call site.
Implementations§
Trait Implementations§
Source§impl Clone for SecretString
impl Clone for SecretString
Source§impl Debug for SecretString
impl Debug for SecretString
impl Eq for SecretString
Source§impl PartialEq for SecretString
impl PartialEq for SecretString
impl StructuralPartialEq for SecretString
Auto Trait Implementations§
impl Freeze for SecretString
impl RefUnwindSafe for SecretString
impl Send for SecretString
impl Sync for SecretString
impl Unpin for SecretString
impl UnsafeUnpin for SecretString
impl UnwindSafe for SecretString
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