pub type SecretString = Secret<String>;Expand description
String-backed secret value.
Aliased Type§
pub struct SecretString { /* private fields */ }Implementations§
Source§impl SecretString
impl SecretString
Sourcepub fn from_string(value: impl Into<String>) -> Self
pub fn from_string(value: impl Into<String>) -> Self
Creates a string-backed secret from any string-like value.
Sourcepub fn expose_str(&self) -> &str
pub fn expose_str(&self) -> &str
Returns the secret as str.