PaginatorBuilder

Struct PaginatorBuilder 

Source
pub struct PaginatorBuilder { /* private fields */ }

Implementations§

Source§

impl PaginatorBuilder

Source

pub fn new() -> Self

Source

pub fn page(self, page: u32) -> Self

Source

pub fn per_page(self, per_page: u32) -> Self

Source

pub fn sort_by(self, field: impl Into<String>) -> Self

Source

pub fn sort_asc(self) -> Self

Source

pub fn sort_desc(self) -> Self

Source

pub fn filter( self, field: impl Into<String>, operator: FilterOperator, value: FilterValue, ) -> Self

Source

pub fn filter_eq(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_ne(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_gt(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_lt(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_gte(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_lte(self, field: impl Into<String>, value: FilterValue) -> Self

Source

pub fn filter_like( self, field: impl Into<String>, pattern: impl Into<String>, ) -> Self

Source

pub fn filter_ilike( self, field: impl Into<String>, pattern: impl Into<String>, ) -> Self

Source

pub fn filter_in( self, field: impl Into<String>, values: Vec<FilterValue>, ) -> Self

Source

pub fn filter_between( self, field: impl Into<String>, min: FilterValue, max: FilterValue, ) -> Self

Source

pub fn filter_is_null(self, field: impl Into<String>) -> Self

Source

pub fn filter_is_not_null(self, field: impl Into<String>) -> Self

Source

pub fn search(self, query: impl Into<String>, fields: Vec<String>) -> Self

Source

pub fn search_exact(self, query: impl Into<String>, fields: Vec<String>) -> Self

Source

pub fn search_case_sensitive( self, query: impl Into<String>, fields: Vec<String>, ) -> Self

Source

pub fn disable_total_count(self) -> Self

Source

pub fn cursor( self, field: impl Into<String>, value: CursorValue, direction: CursorDirection, ) -> Self

Source

pub fn cursor_after(self, field: impl Into<String>, value: CursorValue) -> Self

Source

pub fn cursor_before(self, field: impl Into<String>, value: CursorValue) -> Self

Source

pub fn cursor_from_encoded(self, encoded: &str) -> Result<Self, String>

Source

pub fn build(self) -> PaginationParams

Trait Implementations§

Source§

impl Default for PaginatorBuilder

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.