Skip to main content

redact_db_url

Function redact_db_url 

Source
pub fn redact_db_url(db_url: &str) -> String
Expand description

Redacts the user:password portion of a database URL for safe display. Returns "scheme://***@host/db" for URLs with userinfo, or the original URL otherwise.