Type Alias secrecy::SecretString
source · pub type SecretString = Secret<String>;
Expand description
Secret strings
Aliased Type§
struct SecretString { /* private fields */ }
Implementations
Trait Implementations§
source§impl FromStr for SecretString
impl FromStr for SecretString
source§impl<S> Clone for Secret<S>where
S: CloneableSecret,
impl<S> Clone for Secret<S>where
S: CloneableSecret,
source§impl<'de, T> Deserialize<'de> for Secret<T>
impl<'de, T> Deserialize<'de> for Secret<T>
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<S> ExposeSecret<S> for Secret<S>where
S: Zeroize,
impl<S> ExposeSecret<S> for Secret<S>where
S: Zeroize,
source§fn expose_secret(&self) -> &S
fn expose_secret(&self) -> &S
Expose secret: this is the only method providing access to a secret.