[][src]Trait kv_crud_core::ReadWithPaginationAndSort

pub trait ReadWithPaginationAndSort<I, E: Entity<I>> {
type Error;
    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>; }

Represents the ability to list items with pagination and sorting. This trait is used by custom storage implementations.

Associated Types

type Error

Loading content...

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>

Loading content...

Implementors

Loading content...