pub fn scope_allows( scope: SearchScope, provider_id: &str, active_provider_id: Option<&str>, available_in_active_app: bool, ) -> bool