pub trait ExposeSecretMut<S: ?Sized> {
// Required method
fn expose_secret_mut(&mut self) -> &mut S;
}Expand description
Mutable access to a wrapped secret — mirrors secrecy::ExposeSecretMut.
Added in secrecy 0.9. Not implemented for v08::Secret (which is read-only by design
in that era). Implemented for v10::SecretBox and bridge impls on native types.
§Migration
For new code, prefer RevealSecretMut.
Required Methods§
Sourcefn expose_secret_mut(&mut self) -> &mut S
fn expose_secret_mut(&mut self) -> &mut S
Returns a mutable reference to the inner secret.