prompt_password

Function prompt_password 

Source
pub fn prompt_password(message: &str) -> String
Expand description

Prompts the user for a password (no echo).

Behavior:

  • On I/O failure, logs an error via output::print and retries when using prompt_password_with_validation. The simple prompt_password variant returns an empty string on error.