pub fn role_for( map: &[(String, Role)], email: Option<&str>, groups: &[String], ) -> Option<Role>
The role map gives a user with email and groups: the highest of the entries that match; None when none does.
map
email
groups
None