1 2 3 4 5 6 7 8 9
use crate::api::PasswordStrength; mod zxcvbn; pub use self::zxcvbn::*; pub trait PasswordEstimator { fn estimate_strength(password: &str, user_inputs: &[&str]) -> PasswordStrength; }
1 2 3 4 5 6 7 8 9
use crate::api::PasswordStrength; mod zxcvbn; pub use self::zxcvbn::*; pub trait PasswordEstimator { fn estimate_strength(password: &str, user_inputs: &[&str]) -> PasswordStrength; }