pub struct PaginationConfig { /* private fields */ }Expand description
Pagination extractor configuration.
Implementations§
Source§impl PaginationConfig
impl PaginationConfig
Sourcepub fn default_page(self, page: u64) -> Self
pub fn default_page(self, page: u64) -> Self
Set the default page.
Sourcepub fn default_per_page(self, per_page: u64) -> Self
pub fn default_per_page(self, per_page: u64) -> Self
Set the default per-page.
Sourcepub fn max_per_page(self, max: u64) -> Self
pub fn max_per_page(self, max: u64) -> Self
Set the maximum per-page.
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
Source§impl Default for PaginationConfig
impl Default for PaginationConfig
Source§impl PartialEq for PaginationConfig
impl PartialEq for PaginationConfig
impl Copy for PaginationConfig
impl Eq for PaginationConfig
impl StructuralPartialEq 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: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).