fn has_function_privilege_impl( user_name: &str, function_oid: FunctionId, privileges: &str, ) -> Result<bool>