pub trait ReadWithPaginationAndSort<I, E: Entity<I>> {
type Error;
// Required methods
fn find_all_with_page(&self, page: &Page) -> Result<Vec<E>, Self::Error>;
fn find_all_with_page_and_sort(
&self,
page: &Page,
sort: &Sort,
) -> Result<Vec<E>, Self::Error>;
}
Expand description
Represents the ability to list items with pagination and sorting. This trait is used by custom storage implementations.