pub type SecretString = SecretBox<str>;Expand description
Secret string type — mirrors secrecy::SecretString.
Type alias for SecretBox<str>. Construct from String or &str.
Prefer Dynamic<String> for new code.
Aliased Type§
pub struct SecretString { /* private fields */ }Trait Implementations§
Source§impl Clone for SecretString
impl Clone for SecretString
Source§impl Default for SecretString
impl Default for SecretString
Source§impl<'de> Deserialize<'de> for SecretString
Available on crate feature serde-deserialize only.
impl<'de> Deserialize<'de> for SecretString
Available on crate feature
serde-deserialize only.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<'a> From<&'a str> for SecretString
impl<'a> From<&'a str> for SecretString
Source§impl From<Dynamic<String>> for SecretString
Converts a Dynamic<String> into a SecretString (= SecretBox<str>).
impl From<Dynamic<String>> for SecretString
Converts a Dynamic<String> into a SecretString (= SecretBox<str>).
Clones the inner string. Both ends are zeroized on drop.