Skip to main content

redact_url

Function redact_url 

Source
pub fn redact_url(url: &str) -> String
Expand description

Redact user:password@hostuser:****@host in a database URL so it can be embedded in error messages and logs without leaking credentials.