Skip to main content

Module secret_string

Module secret_string 

Source
Expand description

Helpers for personal data and credentials held as SecretString (or a wrapper of one), at the few places the real value must come out: a wire body, a SQL bind.

Functionsยง

expose_option
The real value of an optional secret, for binding into SQL.
serialize_exposed
For #[serde(serialize_with)] on a field whose real value must be sent.
serialize_exposed_option
serialize_exposed for an optional field.