code: def search_rule_by_id(self, ruleID) -> Rule:
          
          for r in self.rules:
              if r.id == ruleID:
                  return r
          return None
docs: searches a rule by given id
          
          Args:
            ruleID(str): the rule to search for
          
          Returns
            the rule object or None if it couldn't find a rule