pub trait Rule: Send + Sync { // Required methods fn matches(&self, command: &[String]) -> Option<RuleMatch>; fn as_any(&self) -> &dyn Any; }