'Initializes rule with given fields.
:type name: basestring
:type match: (Command) -> bool
:type get_new_command: (Command) -> (basestring | [basestring])
:type enabled_by_default: boolean
:type side_effect: (Command, basestring) -> None
:type priority: int
:type requires_output: bool'

def __init__(self, name, match, get_new_command, enabled_by_default, side_effect, priority, requires_output):

    self.name = name
    self.match = match
    self.get_new_command = get_new_command
    self.enabled_by_default = enabled_by_default
    self.side_effect = side_effect
    self.priority = priority
    self.requires_output = requires_output
