pub struct EntityLoaderPaginator<'db, C, E, L>{ /* private fields */ }Implementationsยง
Sourceยงimpl<'db, C, E, L> EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> EntityLoaderPaginator<'db, C, E, L>
Sourcepub fn fetch_page(&self, page: u64) -> Result<Vec<L::ModelEx>, DbErr>
pub fn fetch_page(&self, page: u64) -> Result<Vec<L::ModelEx>, DbErr>
Fetch a specific page; page index starts from zero
Sourcepub fn num_items_and_pages(&self) -> Result<ItemsAndPagesNumber, DbErr>
pub fn num_items_and_pages(&self) -> Result<ItemsAndPagesNumber, DbErr>
Get the total number of items and pages
Trait Implementationsยง
Sourceยงimpl<'db, C, E, L> Debug for EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> Debug for EntityLoaderPaginator<'db, C, E, L>
Auto Trait Implementationsยง
impl<'db, C, E, L> Freeze for EntityLoaderPaginator<'db, C, E, L>where
L: Freeze,
impl<'db, C, E, L> RefUnwindSafe for EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> Send for EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> Sync for EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> Unpin for EntityLoaderPaginator<'db, C, E, L>
impl<'db, C, E, L> UnwindSafe for EntityLoaderPaginator<'db, C, E, L>
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Sourceยงimpl<T> Instrument for T
impl<T> Instrument for T
Sourceยงfn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Sourceยงfn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more