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
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for SecretString
Available on crate feature
serde
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