pub fn increment_and_assert_rate( collection: &CollectionKey, config: &Option<RateConfig>, ) -> Result<(), String>