enum TimeHistory is used as an argument in the function entity_history_timed. It is responsible for defining valid-time and transaction-times ranges for the query.
The possible options are ValidTime and TransactionTime, both of them receive two Option<DateTime<Utc>>. The first parameter will transform into an start time and the second into and end-time, and they will be formated as %Y-%m-%dT%H:%M:%S.
The query params will become: