Skip to main content

redact_field

Function redact_field 

Source
pub fn redact_field(key: &str, value: &str) -> String
Expand description

Redact the value of a field called key: all of it when the key looks secret, otherwise any credentials inside it (see redact_text).

Args: key: The field name. value: The field value.

Returns: The value safe to print.