Formats data according to the provided rules.
The object where keys are field names and values are the data to format.
The object containing rules to use for formatting.
Returns a new object with formatted values.
Formats data according to the provided rules.