Skip to main content

redact_connection

Function redact_connection 

Source
pub fn redact_connection(connection: &str) -> String
Expand description

Redacts the password of a connection DSN, preserving the other fields (scheme, host, port, user, database). On a parse failure the whole string is replaced with REDACTED_OPTION_VALUE (best-effort).