Skip to main content

redact_password

Function redact_password 

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

url with its passwords replaced by ***, for messages and logs: the user-info part’s (user:***@host) and a query parameter’s naming one (?password=***, sslpassword; B203: sqlx takes both).