pub struct Secret(/* private fields */);Expand description
A password, key or shared secret as written in the configuration, usually the encrypted $9$... form.
Debug never prints the value. Read it with expose.
Implementations§
Trait Implementations§
impl Eq for Secret
impl StructuralPartialEq for Secret
Auto Trait Implementations§
impl Forget for Secret
impl Freeze for Secret
impl Move for Secret
impl RefUnwindSafe for Secret
impl Send for Secretwhere
RawVecInner: Send,
impl Sync for Secretwhere
RawVecInner: Sync,
impl Unpin for Secret
impl UnsafeUnpin for Secret
impl UnwindSafe for Secretwhere
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