pub struct PaginatorBuilder { /* private fields */ }Implementations§
Source§impl PaginatorBuilder
impl PaginatorBuilder
pub fn new() -> Self
pub fn page(self, page: u32) -> Self
pub fn per_page(self, per_page: u32) -> Self
pub fn sort_by(self, field: impl Into<String>) -> Self
pub fn sort_asc(self) -> Self
pub fn sort_desc(self) -> Self
pub fn filter( self, field: impl Into<String>, operator: FilterOperator, value: FilterValue, ) -> Self
pub fn filter_eq(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_ne(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_gt(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_lt(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_gte(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_lte(self, field: impl Into<String>, value: FilterValue) -> Self
pub fn filter_like( self, field: impl Into<String>, pattern: impl Into<String>, ) -> Self
pub fn filter_ilike( self, field: impl Into<String>, pattern: impl Into<String>, ) -> Self
pub fn filter_in( self, field: impl Into<String>, values: Vec<FilterValue>, ) -> Self
pub fn filter_between( self, field: impl Into<String>, min: FilterValue, max: FilterValue, ) -> Self
pub fn filter_is_null(self, field: impl Into<String>) -> Self
pub fn filter_is_not_null(self, field: impl Into<String>) -> Self
pub fn search(self, query: impl Into<String>, fields: Vec<String>) -> Self
pub fn search_exact(self, query: impl Into<String>, fields: Vec<String>) -> Self
pub fn search_case_sensitive( self, query: impl Into<String>, fields: Vec<String>, ) -> Self
pub fn disable_total_count(self) -> Self
pub fn cursor( self, field: impl Into<String>, value: CursorValue, direction: CursorDirection, ) -> Self
pub fn cursor_after(self, field: impl Into<String>, value: CursorValue) -> Self
pub fn cursor_before(self, field: impl Into<String>, value: CursorValue) -> Self
pub fn cursor_from_encoded(self, encoded: &str) -> Result<Self, String>
pub fn build(self) -> PaginationParams
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PaginatorBuilder
impl RefUnwindSafe for PaginatorBuilder
impl Send for PaginatorBuilder
impl Sync for PaginatorBuilder
impl Unpin for PaginatorBuilder
impl UnwindSafe for PaginatorBuilder
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