SecretString

Type Alias SecretString 

Source
pub type SecretString = SecretBox<String>;
Expand description

Wrapper type for strings that contains secrets. See also SecretBox.

Aliased Type§

pub struct SecretString {
    inner_secret: Box<String>,
}

Fields§

§inner_secret: Box<String>

Trait Implementations§

Source§

impl Display for SecretString

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<String> for SecretString

Source§

fn from(value: String) -> Self

Converts to this type from the input type.