1use std::hash::Hash; 2 3pub trait AuthUser: Clone + Send + Sync + 'static { 4 type Id: Clone + Eq + Hash + Send + Sync + 'static; 5 6 fn id(&self) -> Self::Id; 7 8 fn session_auth_hash(&self) -> Option<&str> { 9 None 10 } 11}