pub trait GuessablePassword {
    fn get_password(&self) -> String;

    fn check_pass(&self, checks: Option<u8>) -> bool { ... }
}
Expand description

The implementor of this trait has a field that can be guessed up to three times

Required Methods§

The field must be accessible to the trait through this method.

Provided Methods§

When called starts a series of interactions with the user that result in a boolean It returns true whenever the Password is guessed right and false When it has been guessed wrongly three times

Implementors§