secrecy

Trait ExposeSecret

source
pub trait ExposeSecret<S> {
    // Required method
    fn expose_secret(&self) -> &S;
}
Expand description

Expose a reference to an inner secret

Required Methods§

source

fn expose_secret(&self) -> &S

Expose secret: this is the only method providing access to a secret.

Implementors§

source§

impl<S> ExposeSecret<S> for Secret<S>
where S: Zeroize,