1 2 3 4 5 6 7 8
use mockall::automock; #[automock] pub trait HashService { fn hash(&self, string: &str) -> Result<String, ()>; fn verify(&self, token: &str, token_hash: &str) -> bool; }