pub struct SecretString(/* private fields */);Expand description
Wrapper around a bearer JWT that redacts under Debug and Display.
Call SecretString::expose_secret to get the raw value — deliberately
awkward so accidental leaks (logs, println!("{:?}", config)) become explicit.
Implementations§
Source§impl SecretString
impl SecretString
Trait Implementations§
Source§impl Clone for SecretString
impl Clone for SecretString
Source§impl Debug for SecretString
impl Debug 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