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