Skip to main content

SecretString

Type Alias SecretString 

pub(crate) 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ยง

pub(crate) struct SecretString { /* private fields */ }