Struct rbatis::plugin::page::Page [−][src]
pub struct Page<T> {
pub records: Vec<T>,
pub total: u64,
pub pages: u64,
pub page_no: u64,
pub page_size: u64,
pub search_count: bool,
}
Fields
records: Vec<T>
data
total: u64
total num
pages: u64
pages
page_no: u64
current page index
page_size: u64
default 10
search_count: bool
is search_count
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Page<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Page<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.