pub struct SecretToken(/* private fields */);Expand description
A wrapper around a secret token that prevents accidental exposure.
Uses secrecy::SecretString to ensure tokens are never logged or displayed.
Automatically zeroed on drop to prevent memory disclosure.
Implementations§
Trait Implementations§
Source§impl Debug for SecretToken
impl Debug for SecretToken
Auto Trait Implementations§
impl Freeze for SecretToken
impl RefUnwindSafe for SecretToken
impl Send for SecretToken
impl Sync for SecretToken
impl Unpin for SecretToken
impl UnsafeUnpin for SecretToken
impl UnwindSafe for SecretToken
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