pub type SecretString = SecretBox<str>;Expand description
Secret string type.
This is a type alias for SecretBox<str> which supports some helpful trait impls.
Notably it has a From<String> impl which is the preferred method for construction.
Aliased Type§
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
impl<'de> Deserialize<'de> for SecretString
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