pub struct PaginationConfig { /* private fields */ }
Expand description
Configuration for pagination
Implementations§
Source§impl PaginationConfig
impl PaginationConfig
Sourcepub fn page_name(self, page_name: &'static str) -> Self
pub fn page_name(self, page_name: &'static str) -> Self
Set query name for page
, default "page"
Sourcepub fn per_page_name(self, per_page_name: &'static str) -> Self
pub fn per_page_name(self, per_page_name: &'static str) -> Self
Set query name for per_page
, default "per_page"
Sourcepub fn default_per_page(self, default_per_page: u32) -> Self
pub fn default_per_page(self, default_per_page: u32) -> Self
Set default per_page
, default 20
Sourcepub fn max_per_page(self, max_per_page: u32) -> Self
pub fn max_per_page(self, max_per_page: u32) -> Self
Set max per_page
, default 100
Trait Implementations§
Source§impl Clone for PaginationConfig
impl Clone for PaginationConfig
Source§fn clone(&self) -> PaginationConfig
fn clone(&self) -> PaginationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PaginationConfig
impl Debug for PaginationConfig
impl Copy for PaginationConfig
Auto Trait Implementations§
impl Freeze for PaginationConfig
impl RefUnwindSafe for PaginationConfig
impl Send for PaginationConfig
impl Sync for PaginationConfig
impl Unpin for PaginationConfig
impl UnwindSafe for PaginationConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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