async_graphql/types/connection/page_info.rs
1use crate::SimpleObject;
2
3/// Information about pagination in a connection
4#[derive(SimpleObject)]
5#[graphql(internal, shareable)]
6pub struct PageInfo {
7 /// When paginating backwards, are there more items?
8 pub has_previous_page: bool,
9
10 /// When paginating forwards, are there more items?
11 pub has_next_page: bool,
12
13 /// When paginating backwards, the cursor to continue.
14 pub start_cursor: Option<String>,
15
16 /// When paginating forwards, the cursor to continue.
17 pub end_cursor: Option<String>,
18}