leptos_fetch/pagination/paginated_shared.rs
1/// The key for a page of a paginated query scope.
2#[derive(Debug, Clone, Hash, PartialEq, Eq)]
3pub struct PaginatedPageKey<Key> {
4 /// The actual query key, this should be the same across all pages.
5 pub key: Key,
6 /// The active page index, starting from 0.
7 pub page_index: usize,
8 /// The active page size, the maximum number of items per page.
9 /// The getter will continue to internally query until this many items are available, or there are no more items.
10 pub page_size: usize,
11}