Skip to main content

string

Function string 

Source
pub fn string(input: &str, env: &[(String, String)]) -> String
Expand description

Redact secret values in a string, replacing them with $KEY_NAME.

Longer values are replaced first to prevent partial matches.

Redact secret env-var values found in a string.