[][src]Trait pagination::IntoOffset

pub trait IntoOffset {
    type Offset: Offsetable + Sized;
    fn into_offset(
        self,
        default_page_size: u32,
        max_page_size: u32
    ) -> Self::Offset; }

由分页查询参数计算出的基于便宜量的查询。

Associated Types

type Offset: Offsetable + Sized

see Offsetable

Loading content...

Required methods

fn into_offset(self, default_page_size: u32, max_page_size: u32) -> Self::Offset

转换成基于偏移量的查询

Loading content...

Implementors

impl IntoOffset for PageParams[src]

type Offset = OffsetParams

fn into_offset(self, default_page_size: u32, max_page_size: u32) -> OffsetParams[src]

获取分页查询时,由分页查询参数计算出的便宜量值.

impl<T> IntoOffset for PageRequest<T>[src]

type Offset = OffsetRequest<T>

Loading content...