[][src]Crate secrecy

Secret<T> wrapper type for more carefully handling secret values (e.g. passwords, cryptographic keys, access tokens or other credentials)

Structs

Secret

Wrapper type for values that contains secrets, which attempts to limit accidental exposure and ensure secrets are wiped from memory when dropped. (e.g. passwords, cryptographic keys, access tokens or other credentials)

SecretBytesMut

Instance of BytesMut protected by a type that impls the ExposeSecret trait like Secret<T>.

Traits

CloneableSecret

Marker trait for secrets which are allowed to be cloned

DebugSecret

Debugging trait which is specialized for handling secret values

ExposeSecret

Expose a reference to an inner secret

SerializableSecret

Marker trait for secrets which can be serialized directly by serde. Since this provides a non-explicit exfiltration path for secrets, types must explicitly opt into this.

Type Definitions

SecretBox

Box types containing a secret value

SecretString

Secret strings

SecretVec

Vec types containing secret value