pub trait HashServiceTrait {
// Required methods
fn hash(&self, string: &str) -> Result<String, ()>;
fn verify(&self, token: &str, token_hash: &str) -> bool;
}Required Methods§
fn hash(&self, string: &str) -> Result<String, ()>
fn verify(&self, token: &str, token_hash: &str) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".