pub trait Sensitive {
type Inner: ?Sized;
// Required method
fn expose_secret(&self) -> &Self::Inner;
}Expand description
Disciplines yourself. This trait does NOT enforce:
Dropwipes the storage on out-of-scope.- Redacting
fmt::Debugimpl (never derive). - No
Clone/ noCopy.
Required Associated Types§
Required Methods§
Sourcefn expose_secret(&self) -> &Self::Inner
fn expose_secret(&self) -> &Self::Inner
Explicit-secret-access getter. Mirrors the inherent
expose_secret every sensitive type provides.