A rolling rate limit which allows maxAttempts in the most recent timeframe.
maxAttempts
timeframe
typedef RateLimit = ({int maxAttempts, Duration timeframe});