1 2 3 4 5 6 7
pub type AuthHash = String; pub type UserId = uuid::Uuid; pub enum Security { Anonymous(AuthHash), Authenticated(AuthHash, UserId), }