# Cursor based pagination with Diesel

**URL:** <https://discourse.diesel.rs/t/cursor-based-pagination-with-diesel/149>\
**Category:** Uncategorized\
**Created:** [May 11, 2020, 1:55am UTC](https://discourse.diesel.rs/t/cursor-based-pagination-with-diesel/149 "2020-05-11T01:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![weiznich](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.diesel.rs/weiznich/32/64_2.png) [@weiznich](https://discourse.diesel.rs/u/weiznich)\
**Post date:** [May 12, 2020, 12:58pm UTC](https://discourse.diesel.rs/t/cursor-based-pagination-with-diesel/149/2 "2020-05-12T12:58:34Z")

</div>

Just to have some answer here for now:

You cannot access the field of a concrete type (SelectStatement) in a generic context. All rustc knows at the location of your TODO is that there is some type T that implements Debug, that does not allow you to access any details of a concrete type there. This is a general rust restriction and nothing diesel related.

(I know that does not address the underlying issue, but at least gives you an pointer on what’s wrong with the current implementation. I will try to write a longer answer in the next few days/weeks)

---

_[View the full topic](https://discourse.diesel.rs/t/cursor-based-pagination-with-diesel/149)._
