pub fn is_scope_allowed( policy: Option<&RunPolicy>, id: &str, domain: ScopeDomain, ) -> bool
Check whether an identifier is allowed by the typed policy for a scope domain.