Trait rbatis::plugin::page::IPageRequest
source · pub trait IPageRequest: Send + Sync {
Show 13 methods
// Required methods
fn page_size(&self) -> u64;
fn page_no(&self) -> u64;
fn total(&self) -> u64;
fn do_count(&self) -> bool;
fn set_total(&mut self, arg: u64);
fn set_page_size(&mut self, arg: u64);
fn set_page_no(&mut self, arg: u64);
fn set_do_count(&mut self, arg: bool);
// Provided methods
fn pages(&self) -> u64 { ... }
fn offset(&self) -> u64 { ... }
fn offset_limit(&self) -> u64 { ... }
fn search_count(&self) -> bool { ... }
fn set_search_count(&mut self, arg: bool) { ... }
}
Expand description
Page interface
Required Methods§
fn page_size(&self) -> u64
fn page_no(&self) -> u64
fn total(&self) -> u64
sourcefn do_count(&self) -> bool
fn do_count(&self) -> bool
Control whether to execute count statements to count the total number
fn set_total(&mut self, arg: u64)
fn set_page_size(&mut self, arg: u64)
fn set_page_no(&mut self, arg: u64)
sourcefn set_do_count(&mut self, arg: bool)
fn set_do_count(&mut self, arg: bool)
Control execute select count(1) from table
Provided Methods§
sourcefn offset_limit(&self) -> u64
fn offset_limit(&self) -> u64
sum offset_limit
fn search_count(&self) -> bool
👎Deprecated: please use do_count()
fn set_search_count(&mut self, arg: bool)
👎Deprecated: please use set_do_count()