[][src]Struct rbatis::plugin::page::Page

pub struct Page<T> {
    pub records: Vec<T>,
    pub total: u64,
    pub pages: u64,
    pub size: u64,
    pub current: u64,
    pub serch_count: bool,
}

Fields

records: Vec<T>

data

total: u64

total num

pages: u64

pages

size: u64

default 10

current: u64

current index

serch_count: bool

Implementations

impl<T> Page<T>[src]

pub fn new(current: u64, size: u64) -> Self[src]

pub fn new_option(current: &Option<u64>, size: &Option<u64>) -> Self[src]

pub fn new_total(current: u64, size: u64, total: u64) -> Self[src]

Trait Implementations

impl<T: Clone> Clone for Page<T>[src]

impl<T: Debug> Debug for Page<T>[src]

impl<T> Default for Page<T>[src]

impl<'de, T> Deserialize<'de> for Page<T> where
    T: Deserialize<'de>, 
[src]

impl<T> IPage<T> for Page<T> where
    T: Send + Sync
[src]

impl<T> IPageRequest for Page<T> where
    T: Send + Sync
[src]

impl<T> Serialize for Page<T> where
    T: Serialize
[src]

impl<T> ToString for Page<T> where
    T: Send + Sync + Serialize
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Page<T> where
    T: RefUnwindSafe

impl<T> Send for Page<T> where
    T: Send

impl<T> Sync for Page<T> where
    T: Sync

impl<T> Unpin for Page<T> where
    T: Unpin

impl<T> UnwindSafe for Page<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,