[go: up one dir, main page]

Type Alias secrecy::SecretString

source ·
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

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl From<String> for SecretString

source§

fn from(s: String) -> Self

Converts to this type from the input type.