1 2 3 4
pub trait PasswordHasher { fn hash(&self, password: &str) -> String; fn verify(&self, password: &str, hash: &str) -> bool; }