dialoguerTrait PasswordValidator
Source pub trait PasswordValidator {
type Err;
// Required method
fn validate(&self, input: &String) -> Result<(), Self::Err>;
}
Expand description
Trait for password validators.
Invoked with the value to validate.
If this produces Ok(())
then the value is used and parsed, if
an error is returned validation fails with that error.